/* Stable critical styles for legal pages.
   Kept outside hashed Next.js chunks so an open legal document remains styled
   while a new local production build is being activated. */
html:has(.legal-page),
body:has(.legal-page) {
  margin: 0;
  color: #292621;
  background: #f2eee6;
  font-family: "Outfit Variable", Arial, sans-serif;
}

.legal-page,
.legal-page *,
.legal-page *::before,
.legal-page *::after { box-sizing: border-box; }
.legal-page { min-height: 100vh; color: #292621; background: #f2eee6; }
.legal-page h1,
.legal-page h2 { font-family: "Prata", Georgia, serif; font-weight: 400; }
.legal-page a { color: inherit; }
.legal-header { position: relative; z-index: 5; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 6rem; padding: .8rem clamp(1rem, 4vw, 4.5rem); background: rgba(242,238,230,.96); border-bottom: 1px solid rgba(41,38,33,.16); }
.legal-logo { display: block; width: 6rem; line-height: 0; }
.legal-logo img { display: block; width: 100%; height: auto; }
.legal-header-label { justify-self: center; font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; opacity: .55; }
.legal-back { justify-self: end; display: inline-flex; align-items: center; gap: .65rem; padding-bottom: .3rem; border-bottom: 1px solid currentColor; font-size: .72rem; text-decoration: none; }
.legal-hero { display: grid; grid-template-columns: minmax(14rem,.55fr) minmax(0,1.45fr); gap: 5vw; min-height: clamp(36rem,58vw,48rem); padding: clamp(4rem,8vw,7rem) clamp(1rem,4vw,4.5rem); color: #f2eee6; background: #292621; border-bottom: 1px solid rgba(255,255,255,.15); }
.legal-hero-meta { display: flex; flex-direction: column; justify-content: space-between; padding-bottom: .4rem; }
.legal-hero-meta .kicker { margin: 0; color: #a98652; }
.legal-hero-meta > span:last-child { font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; opacity: .46; }
.legal-hero-copy { display: flex; flex-direction: column; }
.legal-hero h1 { max-width: 10ch; margin: 0; font-size: clamp(4rem,8.6vw,9rem); line-height: .82; letter-spacing: -.045em; }
.legal-hero p { max-width: 46rem; margin: auto 0 2.5rem; color: rgba(255,255,255,.66); font-size: clamp(1rem,1.45vw,1.18rem); }
.legal-hero-copy > div { display: flex; gap: 1.2rem; align-items: center; padding-top: 1.1rem; border-top: 1px solid rgba(255,255,255,.18); }
.legal-hero-copy small { font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; opacity: .45; }
.legal-hero-copy strong { font-size: .7rem; font-weight: 500; }
.legal-document { display: grid; grid-template-columns: minmax(15rem,.55fr) minmax(0,1.45fr); gap: 5vw; padding: 0 clamp(1rem,4vw,4.5rem); }
.legal-index { position: sticky; top: 0; align-self: start; display: flex; flex-direction: column; height: 100vh; padding: clamp(3rem,5vw,5rem) 0 2rem; border-right: 1px solid rgba(41,38,33,.16); }
.legal-index > span { margin-bottom: 1.5rem; font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; opacity: .45; }
.legal-index nav { display: flex; flex-direction: column; padding-right: clamp(1rem,3vw,3rem); }
.legal-index nav a { display: grid; grid-template-columns: 2rem 1fr; gap: .65rem; padding: .65rem 0; color: rgba(41,38,33,.58); border-bottom: 1px solid rgba(41,38,33,.1); font-size: .76rem; line-height: 1.3; text-decoration: none; }
.legal-index nav small { font-size: .56rem; opacity: .55; }
.legal-contact-link { display: flex; justify-content: space-between; margin: auto clamp(1rem,3vw,3rem) 0 0; padding-top: 1rem; border-top: 1px solid rgba(41,38,33,.16); font-size: .72rem; text-decoration: none; }
.legal-content { min-width: 0; }
.legal-section { scroll-margin-top: 2rem; display: grid; grid-template-columns: 3.25rem minmax(0,1fr); gap: clamp(1.5rem,3vw,3.5rem); padding: clamp(3.5rem,6vw,6rem) 0; border-bottom: 1px solid rgba(41,38,33,.16); }
.legal-section > span { display: grid; place-items: center; align-self: start; width: 2.65rem; height: 2.65rem; border: 1px solid rgba(41,38,33,.26); border-radius: 50%; font-size: .61rem; opacity: .65; }
.legal-section h2 { max-width: 18ch; margin: 0 0 1.75rem; font-size: clamp(2rem,3.4vw,3.6rem); line-height: .98; }
.legal-section p,
.legal-section li { max-width: 50rem; color: rgba(41,38,33,.68); font-size: .95rem; line-height: 1.8; }
.legal-section p:last-child { margin-bottom: 0; }
.legal-section ul { margin: 0 0 1.5rem; padding: 0; list-style: none; }
.legal-section li { position: relative; padding: .65rem 0 .65rem 1.5rem; border-bottom: 1px solid rgba(41,38,33,.1); }
.legal-section li::before { content: "↗"; position: absolute; left: 0; top: .72rem; color: #a98652; font-size: .72rem; }
.legal-section a { color: #292621; text-decoration-color: rgba(41,38,33,.35); text-underline-offset: .22em; }
.legal-footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 3rem; padding: 3rem clamp(1rem,4vw,4.5rem); color: #f2eee6; background: #24211d; font-size: .74rem; }
.legal-footer p { margin: 0 0 .35rem; font-size: 1rem; }
.legal-footer span { color: rgba(255,255,255,.5); }
.legal-footer nav { display: flex; gap: 1.5rem; }
.legal-footer > a { justify-self: end; }
.legal-footer a { color: inherit; text-underline-offset: .25em; }

@media (max-width: 680px) {
  .legal-header { grid-template-columns: 1fr auto; min-height: 5rem; }
  .legal-logo { width: 5rem; }
  .legal-header-label { display: none; }
  .legal-back { border-bottom: 0; font-size: .68rem; }
  .legal-back span { display: none; }
  .legal-hero { grid-template-columns: 1fr; min-height: 34rem; gap: 3rem; padding-top: 3.5rem; padding-bottom: 3.5rem; }
  .legal-hero-meta { flex-direction: row; }
  .legal-hero-meta > span:last-child { display: none; }
  .legal-hero h1 { font-size: clamp(3.7rem,17vw,5.5rem); }
  .legal-hero-copy p { margin-top: auto; margin-bottom: 1.5rem; }
  .legal-document { grid-template-columns: 1fr; }
  .legal-index { position: static; height: auto; padding: 2rem 0 0; border-right: 0; border-bottom: 1px solid rgba(41,38,33,.16); }
  .legal-index nav { display: grid; grid-template-columns: 1fr; padding: 0; }
  .legal-contact-link { margin: 1.5rem 0 0; padding-bottom: 1.5rem; }
  .legal-section { grid-template-columns: 1fr; gap: 1.5rem; }
  .legal-section h2 { font-size: clamp(2.1rem,10vw,3.2rem); }
  .legal-footer { grid-template-columns: 1fr; gap: 2rem; }
  .legal-footer nav { flex-direction: column; gap: .6rem; }
  .legal-footer > a { justify-self: start; }
}
