/* =========================================================
   Legal pages (Terms / Privacy / Cookies) - global public-page
   design system. Long-form prose, numbered sections.
   ========================================================= */

.wk-body-90 {
  width: min(90%, 1200px);
  margin: 0 auto;
}

.wk-body-90 > *:first-child {
  margin-top: 60px;
}

/* ---------- Hero ---------- */

.legal-hero {
  padding: 40px 0 20px;
  max-width: 720px;
}

.eyebrow.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--emerald-signature, #014421);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.eyebrow.section-badge::before {
  content: "";
  width: 16px;
  height: 2px;
  background: var(--gold-premium, #c9a227);
  display: inline-block;
}

.legal-hero__title {
  margin-top: 18px;
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: left;
}

.legal-hero__subtitle {
  margin-top: 16px;
  max-width: 60ch;
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(10, 10, 10, 0.68);
  text-align: left;
}

.legal-hero__meta {
  margin-top: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: rgba(10, 10, 10, 0.45);
}

/* ---------- Layout: sticky TOC + prose ---------- */

.legal-layout {
  padding: 32px 0 72px;
}

/* ---------- Prose ---------- */

.legal-body {
  max-width: 70ch;
  margin: 20px auto 0;
}

.legal-body h2 {
  margin: 48px 0 14px;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #12211a;
}

.legal-body h2:first-child {
  margin-top: 0;
}

.legal-body h3 {
  margin: 28px 0 10px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #12211a;
}

.legal-body p {
  margin: 0 0 16px;
  font-size: 0.97rem;
  line-height: 1.75;
  color: rgba(10, 10, 10, 0.68);
}

.legal-body ul,
.legal-body ol {
  margin: 0 0 16px;
  padding-left: 22px;
  font-size: 0.97rem;
  line-height: 1.75;
  color: rgba(10, 10, 10, 0.68);
}

.legal-body li {
  margin-bottom: 8px;
}

.legal-body a {
  color: var(--emerald-signature, #014421);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-body strong {
  color: #12211a;
  font-weight: 600;
}

/* ---------- Per-page signature ---------- */

/* Terms: key-clause callout */

.legal-callout {
  margin: 4px 0 20px;
  padding: 16px 20px;
  border-left: 3px solid var(--gold-premium, #c9a227);
  background: rgba(201, 162, 39, 0.08);
  border-radius: 0 12px 12px 0;
}

.legal-callout p:last-child {
  margin-bottom: 0;
}

/* Privacy: at-a-glance card */

.legal-glance {
  margin: 0 0 44px;
  padding: 26px 28px;
  background: var(--emerald-signature, #014421);
  border-radius: 16px;
}

.legal-glance__label {
  display: block;
  margin-bottom: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold-premium, #c9a227);
}

.legal-glance ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.legal-glance li {
  position: relative;
  margin: 0;
  padding-left: 24px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
}

.legal-glance li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: var(--gold-premium, #c9a227);
}

/* Cookie: inventory table */

.cookie-table {
  width: 100%;
  margin: 8px 0 28px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.cookie-table th {
  padding: 10px 14px;
  text-align: left;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #12211a;
  border-bottom: 2px solid var(--emerald-signature, #014421);
}

.cookie-table td {
  padding: 12px 14px;
  vertical-align: top;
  line-height: 1.55;
  color: rgba(10, 10, 10, 0.68);
  border-bottom: 1px solid rgba(10, 10, 10, 0.08);
}

.cookie-table td:first-child {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
  color: var(--emerald-signature, #014421);
  white-space: nowrap;
}

.cookie-table tr.cookie-table__cat td {
  padding-top: 20px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-premium, #c9a227);
}

/* ---------- Responsive ---------- */

@media (max-width: 640px) {
  .legal-glance ul {
    grid-template-columns: 1fr;
  }

  .cookie-table td:first-child {
    white-space: normal;
  }
}
