/* Legal pages (privacy policy, terms).
   Editorial-luxury reading layout: one narrow column, generous vertical rhythm,
   gold used only for rules and eyebrows. Every value resolves to a token from
   the :root block in styles.css — no raw hex here (see Design.md). */

.legal {
  padding: 180px 0 var(--section-gap);
  background: var(--surface);
}

.legal__head {
  max-width: 760px;
  margin: 0 auto 72px;
  text-align: center;
}
.legal__title {
  font-family: var(--display);
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--on-surface);
  margin: 10px 0 22px;
}
.legal__rule {
  width: 64px;
  height: 1px;
  margin: 0 auto 22px;
  background: linear-gradient(90deg, transparent, var(--bronze), transparent);
}
.legal__meta {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.legal__body { max-width: 760px; margin: 0 auto; }

/* Numbered sections, the numeral echoing the 01/02/03 treatment on the home page */
.legal__section { margin-bottom: 64px; }
.legal__section:last-child { margin-bottom: 0; }
.legal__num {
  display: block;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--primary);
  margin-bottom: 10px;
}
.legal__h {
  font-family: var(--display);
  font-size: clamp(24px, 2.4vw, 28px);
  font-weight: 500;
  line-height: 1.3;
  color: var(--on-surface);
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--charcoal-border);
}
.legal__body p,
.legal__body li {
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--on-surface-variant);
}
.legal__body p { margin-bottom: 16px; }
.legal__body p:last-child { margin-bottom: 0; }
.legal__body strong { color: var(--on-surface); font-weight: 600; }
.legal__body a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.legal__body a:hover { color: var(--on-surface); }

.legal__list { list-style: none; margin: 0 0 16px; padding: 0; }
.legal__list li { position: relative; padding-left: 22px; margin-bottom: 10px; }
.legal__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 12px;
  width: 8px; height: 1px;
  background: var(--bronze);
}

/* Cookie table — the transparency obligation the exemption does not cover */
.legal__table-wrap { overflow-x: auto; margin-bottom: 16px; }
.legal__table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-family: var(--body);
  border: 1px solid var(--charcoal-border);
}
.legal__table th,
.legal__table td {
  padding: 14px 16px;
  text-align: left;
  font-size: 14px;
  line-height: 1.6;
  border-bottom: 1px solid var(--charcoal-border);
  vertical-align: top;
}
.legal__table th {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-lowest);
}
.legal__table td { color: var(--on-surface-variant); }
.legal__table tr:last-child td { border-bottom: 0; }
.legal__table code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  color: var(--primary);
}

/* Contact / controller block */
.legal__card {
  padding: 28px 30px;
  background: var(--surface-lowest);
  border: 1px solid var(--charcoal-border);
  border-radius: var(--r-lg);
}
.legal__card a { color: var(--primary); }

@media (max-width: 640px) {
  .legal { padding: 130px 0 80px; }
  .legal__head { margin-bottom: 52px; }
  .legal__section { margin-bottom: 48px; }
  .legal__card { padding: 22px 20px; }
}
