/* Legal pages — editorial two-column composition.
   Giant LEGAL label + page nav on the left, policy content right.
   Loaded together with auth.css (header/footer/tokens). */

/* Pin the footer to the bottom even on short pages. */
body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.legal-layout { flex: 1; width: 100%; }

.legal-layout {
  display: grid;
  grid-template-columns: minmax(220px, 4fr) minmax(0, 8fr);
  gap: clamp(30px, 6vw, 100px);
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(30px, 5vw, 70px) clamp(16px, 2.6vw, 44px) clamp(60px, 8vw, 120px);
  align-items: start;
}

.legal-side { position: sticky; top: 90px; display: grid; gap: 30px; }
.legal-side h1 {
  margin: 0;
  font-size: clamp(46px, 6.5vw, 88px);
  font-weight: 700;
  text-transform: uppercase;
  line-height: .95;
  letter-spacing: -.01em;
}
.legal-nav { display: grid; gap: 9px; justify-items: start; }
.legal-nav a {
  text-transform: uppercase;
  letter-spacing: .09em;
  font-size: 11px;
  color: var(--muted);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}
.legal-nav a:hover { color: var(--text); }
.legal-nav a.active { color: var(--text); border-color: var(--text); }

.legal-content { display: grid; gap: 18px; min-width: 0; }
.legal-content .page-title {
  margin: 0;
  font-size: clamp(20px, 2.3vw, 27px);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.legal-meta {
  margin: 0;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 10px;
}

/* Body copy is fully uppercase with a single uniform weight — inline
   emphasis is deliberately neutralized so nothing inside a paragraph
   is bolder than the rest. */
.legal-prose {
  display: grid;
  gap: 14px;
  font-size: 11.5px;
  line-height: 1.85;
  letter-spacing: .03em;
  text-transform: uppercase;
}
/* Section headings stay quiet: normal weight, distinguished from the
   grey body copy by full black and wider tracking only. */
.legal-prose h2 {
  margin: 18px 0 0;
  font-size: 12px;
  font-weight: 400;
  color: var(--text);
  letter-spacing: .1em;
}
.legal-prose p, .legal-prose li { margin: 0; color: #3c3c3c; text-align: justify; }
.legal-prose ul { margin: 0; padding-left: 18px; display: grid; gap: 7px; }
.legal-prose a { border-bottom: 1px solid var(--line); padding-bottom: 1px; }
.legal-prose a:hover { border-color: var(--text); }
.legal-prose strong, .legal-prose b { font-weight: inherit; color: inherit; }

.todo {
  background: #f4f3f1;
  border: 1px dashed #b3b3b3;
  padding: 0 6px;
  color: #121212;
}

/* Small technical footnote (e.g. raw storage keys on the Cookie
   Policy) — kept out of the readable copy, lowercase so the keys
   render exactly as they exist in the browser. */
.legal-prose .tech-note {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .04em;
  text-transform: none;
  text-align: left;
}
.legal-prose .tech-note span { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9.5px; }

.draft-note {
  border: 1px solid var(--line);
  background: #fafaf8;
  padding: 12px 16px;
  color: var(--muted);
  font-size: 10.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.7;
}

@media (max-width: 860px) {
  .legal-layout { grid-template-columns: 1fr; gap: 30px; }
  .legal-side { position: static; }
  .legal-side h1 { font-size: clamp(40px, 12vw, 60px); }
  .legal-nav { grid-auto-flow: row; }
  .legal-prose p, .legal-prose li { text-align: left; }
}
