/* Static legal pages (privacy.html, terms.html). The top bar matches the landing page; the
   document itself is deliberately plain, like a printed terms document — Times New Roman, black
   text, numbered headings, tight spacing, no colour or decoration. */
* { box-sizing: border-box; }

body {
  margin: 0;
  color: #000;
  background: #fff;
}

/* Top bar — same look as the landing page's nav */
.legal-nav {
  border-bottom: 1px solid #e2e8f0;
  background: #fff;
}
.legal-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1200px;
  height: 64px;
  margin: 0 auto;
  padding: 0 24px;
}
.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: #0f172a;
  text-decoration: none;
}
.legal-brand img { display: block; width: 36px; height: 36px; }
.legal-accent { color: #047857; }
.legal-nav-link {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #475569;
  text-decoration: none;
}
.legal-nav-link:hover { color: #047857; }

/* The footer sits at the bottom of the window even when the page is short */
body { display: flex; flex-direction: column; min-height: 100vh; }

/* The document: a plain centred column on the page, Times New Roman 12pt, justified. */
.legal-main {
  box-sizing: border-box;
  width: 100%;
  max-width: 890px;
  margin: 0 auto;
  padding: 48px 24px 64px;
  font-family: 'Times New Roman', Times, serif;
  font-size: 12pt;
  line-height: 1.15;
  text-align: justify;
  hyphens: auto;
}
.legal-main a { color: #000; }

h1 {
  margin: 0 0 6pt;
  font-size: 14pt;
  font-weight: bold;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.legal-effective { margin: 0 0 12pt; text-align: center; }
h1 + p { margin-top: 12pt; }

h2 { margin: 14pt 0 6pt; font-size: 12pt; font-weight: bold; text-align: left; }
h3 { margin: 10pt 0 4pt; font-size: 12pt; font-weight: bold; font-style: italic; text-align: left; }

p { margin: 0 0 8pt; }
ul { margin: 0 0 8pt; padding-left: 0.5in; }
li { margin: 0 0 3pt; }
code { font-family: inherit; }

/* Terms: set like LYHCO's RoofWallRug terms (roofwallrug.com/terms) — the browser's monospace at
   0.8em, left-aligned, bold uppercase headings, lettered clauses. */
.legal-mono {
  font-family: monospace;
  font-size: 0.9em;
  line-height: 1.5;
  text-align: left;
  hyphens: manual;
}
.legal-mono h1,
.legal-mono h2,
.legal-mono h3 {
  font-size: 1em;
  font-weight: bold;
  font-style: normal;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0;
}
.legal-mono h1 { font-size: 1.5em; font-weight: normal; margin-bottom: 12pt; }
.legal-mono h2 { margin-top: 20pt; }
.legal-mono ol { margin: 0 0 8pt; padding-left: 3em; }
.legal-mono ol ol { margin: 4pt 0; }
.legal-mono ol[type="a"] > li::marker { content: "(" counter(list-item, lower-alpha) ") "; }
.legal-mono ol[type="i"] > li::marker { content: "(" counter(list-item, lower-roman) ") "; }

/* Footer: same as the landing page's */
.legal-footer {
  margin-top: auto;
  padding: 32px 0;
  background: #fff;
  border-top: 1px solid #e2e8f0;
  font-family: 'Inter', system-ui, sans-serif;
}
.legal-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.legal-footer-brand { font-size: 17px; }
.legal-footer-brand img { width: 28px; height: 28px; }
.legal-footer-copy { font-size: 13px; color: #64748b; }
.legal-footer-links { display: flex; gap: 24px; font-size: 13px; }
.legal-footer-links a { color: #475569; text-decoration: none; }
.legal-footer-links a:hover { color: #0f172a; }

/* Phones: narrower margins, no justification */
@media (max-width: 640px) {
  .legal-main {
    padding: 24px 20px 40px;
    text-align: left;
  }
}
