/* ============================================================================
   Firm & Frame — ROOT stylesheet

   Used by the three SHARED pages at the domain root:
   privacy.html · terms.html · accessibility.html

   These pages belong to no vertical, so they cannot load law-firms/styles.css
   or therapists/styles.css. This file carries the SHARED SYSTEM ONLY — tokens,
   base, kicker, buttons, header, footer, legal-page — copied verbatim from
   law-firms/styles.css (see DESIGN.md §8).

   ⚠️ Nothing vertical-specific belongs here. If you change a value above the
   "root-only" banner near the bottom, change it in every vertical or not at all.
   ============================================================================ */

/* ============ Tokens ============ */
:root{
  --paper:#f2f6f5; --white:#fdfefd; --ink:#102d35; --green:#092229;
  --ox:#8ed8e8; --oxwash:#dbeef2; --gold:#e84d38; --gold-deep:#c2371f;
  --muted:#51666c; --muted-dark:#9fb8bd;
  --line:#d3dedd; --line-dark:rgba(255,255,255,.18);
  --pad:clamp(20px,4vw,56px); --rad:22px; --rad-img:14px;
  --serif:"Libre Caslon Display",Georgia,serif; --serif-i:"Libre Caslon Text",Georgia,serif; --sans:"DM Sans",Arial,sans-serif;
  --shadow:0 24px 60px rgba(9,34,41,.16),0 4px 14px rgba(9,34,41,.08);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
html,body{overflow-x:clip}
body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--sans);font-size:16.5px;line-height:1.55}
a{color:inherit;text-decoration:none}
button,input,textarea{font:inherit}
button{color:inherit}
/* height:auto is REQUIRED — images carry intrinsic width/height attributes (for CLS),
   and without this the raw pixel height wins wherever CSS only sets width. */
img{max-width:100%;height:auto;display:block}
.skip-link{position:fixed;top:0;left:1rem;z-index:1000;padding:.75rem 1rem;background:var(--white);border-radius:0 0 12px 12px;transform:translateY(-120%)}
.skip-link:focus{transform:none}

/* ============ Kicker system ============ */
.kicker,.eyebrow{display:flex;align-items:center;gap:.8rem;font-size:.7rem;font-weight:600;text-transform:uppercase;letter-spacing:.16em;margin:0 0 1.6rem}
.kicker:before{content:"";width:44px;height:2px;background:var(--gold);flex:none}
.mini-kicker{font-size:.68rem;font-weight:600;text-transform:uppercase;letter-spacing:.14em;margin:0 0 1rem}

/* ============ Buttons & links ============ */
.button{display:inline-flex;align-items:center;justify-content:center;gap:.7rem;border:0;border-radius:999px;padding:1rem 1.75rem;font-size:.95rem;font-weight:600;cursor:pointer;transition:transform .2s,box-shadow .2s,background .2s;line-height:1}
.button:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(9,34,41,.18)}
.button-gold{background:var(--gold);color:#07181d}
.button:focus-visible,.text-link:focus-visible,a:focus-visible,button:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
.text-link{display:inline-block;font-size:.9rem;font-weight:600;border-bottom:1.5px solid var(--gold);padding:.2rem 0}

/* ============ Header (pill nav) ============ */
.site-header{position:sticky;top:0;z-index:100;display:grid;align-items:center;min-height:76px;padding:0 var(--pad);background:rgba(242,246,245,.85);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-bottom:1px solid var(--line);transition:box-shadow .25s,background .25s}
.brand{display:inline-flex;align-items:center;gap:.72rem;font-size:1.1rem;font-weight:600;letter-spacing:-.03em}
.brand em{font-family:var(--serif);font-weight:400}
.brand-mark{position:relative;width:26px;height:26px;display:block}
.brand-mark i{position:absolute;width:9px;height:9px;border-color:currentColor;border-style:solid}
.brand-mark i:nth-child(1){top:0;left:0;border-width:1.5px 0 0 1.5px}
.brand-mark i:nth-child(2){top:0;right:0;border-width:1.5px 1.5px 0 0}
.brand-mark i:nth-child(3){bottom:0;left:0;border-width:0 0 1.5px 1.5px}
.brand-mark i:nth-child(4){right:0;bottom:0;border-width:0 1.5px 1.5px 0}
.header-cta{justify-self:end;padding:.8rem 1.4rem;font-size:.85rem}
/* Legal and thanks pages carry no nav and no menu button. The 1020px rule hides
   .header-cta and hands over to .menu-button — with no menu button on those pages
   that would leave them with no way back, so .header-plain opts out of the swap. */
.site-header.header-plain{grid-template-columns:1fr auto}

/* ============ Footer ============ */
/* Four columns: the brand block, then three labelled link groups. The old
   two-column grid left an empty cell beside the link row, which is what made the
   spacing look arbitrary. */
/* Sky, not green: the contact section directly above is a dark pass, and a green
   footer merged into it as one continuous dark mass with only a hairline between.
   The brand mark draws with currentColor, so it flips to ink on its own. */
footer{padding:clamp(3.5rem,7vh,5rem) max(var(--pad),calc((100% - 1240px) / 2)) 1.6rem;
  background:var(--oxwash);color:var(--ink);
  display:grid;grid-template-columns:1fr 1.1fr;gap:clamp(2.5rem,6vw,6rem);
  align-items:start;border-top:1px solid var(--line)}
/* The two link groups share the second column, which is the same track the
   inquiry form occupies in the section above. */
.footer-cols{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(1.5rem,3vw,2.5rem)}
/* Nudged off the form's left edge — flush against it read as accidental.
   Both columns shift together, with Explore carrying the extra offset. */
.footer-cols{padding-left:24px}
.footer-cols>:first-child{padding-left:20px}
.footer-intro{max-width:34ch}
.footer-brand{font-size:1.25rem}
.footer-intro p{margin:1.1rem 0 0;color:var(--muted);font-size:.95rem;line-height:1.55}
.footer-cta{margin-top:1.5rem}
.footer-label{margin:0 0 1rem;font-family:var(--sans);font-size:.7rem;font-weight:600;
  text-transform:uppercase;letter-spacing:.16em;color:var(--ink)}
.footer-col ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.15rem}
/* .55rem of vertical padding takes every row past the 24px target minimum. */
.footer-col a,.footer-plain{display:inline-block;padding:.55rem 0;font-size:.92rem;line-height:1.3}
.footer-col a{border-bottom:1px solid transparent;transition:border-color .2s}
.footer-col a:hover,.footer-col a:focus-visible{border-color:currentColor}
.footer-plain{color:var(--muted)}
.footer-bottom{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;
  gap:.6rem 1.5rem;flex-wrap:wrap;margin-top:clamp(1.5rem,3vh,2.5rem);
  border-top:1px solid var(--line);padding-top:1.2rem;
  color:var(--muted);font-size:.72rem;text-transform:uppercase;letter-spacing:.1em}
.footer-legal{list-style:none;display:flex;flex-wrap:wrap;gap:0 1.5rem;margin:0;padding:0}
.footer-bottom a{display:inline-block;padding:.35rem 0;border-bottom:1px solid rgba(16,45,53,.32)}
.footer-bottom a:hover,.footer-bottom a:focus-visible{border-bottom-color:currentColor}
@media(max-width:900px){
  footer{grid-template-columns:1fr;gap:2.5rem}
  /* These offsets only exist to line the columns up with the inquiry form in the
     two-column layout. Stacked, they just indent one group further than the other. */
  .footer-cols,.footer-cols>:first-child{padding-left:0}
}
@media(max-width:520px){
  .footer-cols{grid-template-columns:1fr;gap:1.75rem}
  .footer-cta{width:100%;text-align:center}
}

/* ============ Legal pages (shared) ============ */
.legal-page{max-width:850px;margin:0 auto;padding:clamp(5rem,10vw,9rem) var(--pad)}
.legal-page h1{font-family:var(--serif);font-size:clamp(3rem,7vw,5.5rem);font-weight:400;line-height:.95;letter-spacing:-.04em;margin:0 0 1rem}
.legal-page h2{font-family:var(--serif);font-size:1.7rem;font-weight:400;margin:2.6rem 0 .5rem}
.legal-page p{font-size:1.02rem;max-width:68ch}
.legal-date{color:var(--muted);font-size:.72rem!important;text-transform:uppercase;letter-spacing:.1em}

/* ============================================================================
   ROOT-ONLY — below this line is specific to the shared legal pages
   ============================================================================ */

@media(max-width:680px){
  body{font-size:16px}
  .site-header.header-plain .header-cta{padding:.6rem 1rem;font-size:.8rem}
  footer{grid-template-columns:1fr}
  footer>p{justify-self:start}
  .footer-bottom{flex-direction:column;gap:.5rem}
}

@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
}

/* Libre Caslon Display ships no italic — Chrome would synthesize a fake slant.
   Libre Caslon Text is its companion face and has a true drawn italic. */
/* Libre Caslon Text is a text-optimised face: larger x-height than Display, so at the
   same px it reads oversized. .94em optically matches it to the Display roman. */
h1 em,h2 em,h3 em,.brand em{font-family:var(--serif-i);font-style:italic;font-size:.94em}
