/* legal.css — privacy, terms, faq, contact.

   These four pages were still on styles.css, whose first line reads
   "CalculatorPR0 Support Site — Minimal Apple-like Design": white ground,
   Apple blue, 12px radii. The content had already been rewritten for
   Tesseract; only the skin was left behind.

   Same tokens and the same square corners as download/features/pricing,
   but written fresh rather than copied from them — those pages define
   .card as a flex platform tile with a min-height, and these pages use
   .card for a page-length block of prose. */

:root{
  --bg:#0B0C0D; --ink:#E8E5DE; --acc:#D97E45; --dim:#93908A; --faint:#5B5A56;
  --line:rgba(232,229,222,0.12); --edge:rgba(232,229,222,0.22);
  --card:rgba(232,229,222,0.03);
  --mono:ui-monospace,'SF Mono',Menlo,Consolas,monospace;
  --sans:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;
}
*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%}
body{background:var(--bg);color:var(--ink);font-family:var(--sans);
     line-height:1.65;-webkit-font-smoothing:antialiased;
     min-height:100vh;display:flex;flex-direction:column}
a{color:inherit}

/* ── Header, matching every other static page ── */
.wrap{width:100%;max-width:1000px;margin:0 auto;padding:0 24px}
header{position:sticky;top:0;z-index:10;background:rgba(11,12,13,0.86);
       backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);
       border-bottom:1px solid var(--line)}
.hrow{display:flex;align-items:center;justify-content:space-between;height:68px}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none}
.brand span{font-family:var(--mono);font-size:12px;font-weight:600;letter-spacing:0.22em}
.topnav{display:flex;gap:20px;align-items:center;flex-wrap:wrap}
.topnav a{font-family:var(--mono);font-size:10.5px;letter-spacing:0.14em;
          text-transform:uppercase;color:var(--dim);text-decoration:none;
          transition:color .15s}
.topnav a:hover,.topnav a.active{color:var(--acc)}

/* ── Body ── */
main{flex:1;width:100%;max-width:1000px;margin:0 auto;padding:64px 24px 88px}
.hero{margin-bottom:8px}
.hero h1{font-size:clamp(28px,4.6vw,40px);line-height:1.14;letter-spacing:-0.022em;
         font-weight:600;text-wrap:balance}
.hero .subtitle{margin-top:12px;font-family:var(--mono);font-size:11px;
                letter-spacing:0.16em;text-transform:uppercase;color:var(--faint)}

/* Prose. Measure is capped for readability — legal text is the one thing
   on this site people actually have to read start to finish.

   Targets .card as well as .legal-content because the four pages disagree:
   privacy and terms wrap everything in one `card legal-content` section,
   while faq and contact split their content across 7 and 6 plain `card`
   sections. Styling both means the rules land whichever markup a page
   happens to use, and the rule that gives each section a top hairline
   turns those multiple cards into readable group separators.

   Safe to claim .card so broadly: legal.css is loaded by these four pages
   only. download.html, i.html and g.html also use .card but carry their
   own inline definitions and never load this file. */
.legal-content,.card{margin-top:40px;padding-top:32px;
                     border-top:1px solid var(--line);max-width:68ch}
.legal-content h2,.card h2{font-size:17px;font-weight:600;letter-spacing:-0.008em;
                           margin:34px 0 12px}
.legal-content h2:first-child,.card h2:first-child{margin-top:0}
.legal-content h3,.card h3{font-size:15px;font-weight:600;margin:24px 0 8px;
                           color:var(--ink)}
.legal-content h3:first-child,.card h3:first-child{margin-top:0}
.legal-content p,.card p{font-size:15.5px;color:var(--dim);margin-bottom:14px}
.legal-content ul,.legal-content ol,.card ul,.card ol{margin:0 0 16px 0;
                                                      padding-left:20px;color:var(--dim)}
.legal-content li,.card li{font-size:15.5px;margin-bottom:7px}
.legal-content strong,.card strong{color:var(--ink);font-weight:600}
.legal-content code,.card code{font-family:var(--mono);font-size:13.5px;color:var(--ink)}
.legal-content a,.card a{color:var(--dim);text-decoration:underline;
                         text-underline-offset:3px;transition:color .15s}
.legal-content a:hover,.card a:hover{color:var(--acc)}
.legal-content hr,.card hr{border:0;border-top:1px solid var(--line);margin:32px 0}

/* ── Footer, matching every other static page ── */
footer{border-top:1px solid var(--line);padding:28px 0;color:var(--faint);
       font-family:var(--mono);font-size:10.5px;letter-spacing:0.14em}
.frow{display:flex;flex-wrap:wrap;gap:18px;justify-content:space-between}
footer a{color:var(--faint);text-decoration:none}
footer a:hover{color:var(--dim)}

@media (max-width:700px){
  /* padding-block only: .hrow IS .wrap on this markup too, so a
     `padding:14px 0` shorthand would cancel the 24px side gutter. */
  .hrow{height:auto;padding-top:14px;padding-bottom:14px;
        flex-direction:column;align-items:flex-start;gap:12px}
  .topnav{gap:14px}
  main{padding:44px 24px 64px}
  .legal-content,.card{margin-top:30px;padding-top:26px}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important}}
