/* Legal pages override --max to narrower content width */
:root { --max: 860px; }

/* ── BODY ── */
body {
  background: var(--light-bg);
  color: var(--light-text);
}

/* ── NAV (legal overrides) ── */
nav {
  position: sticky;
  top: 0;
  background: var(--black);
}

/* ── PAGE HERO ── */
.page-hero {
  background: var(--black-soft);
  border-bottom: 1px solid var(--border);
  padding: 4rem 3rem 3.5rem;
}

.page-hero-inner { max-width: var(--max); margin: 0 auto; }

.breadcrumb {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--ink-dim);
  margin-bottom: 1.25rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.breadcrumb a { color: var(--ink-dim); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--gold); }

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.page-hero .update { font-size: 0.8rem; color: var(--ink-dim); letter-spacing: 0.05em; }

/* ── CONTENT ── */
.content-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4rem 3rem 6rem;
}

.legal-section {
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--light-border);
}

.legal-section:last-child { border-bottom: none; margin-bottom: 0; }

.legal-section h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--light-text);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.legal-section h2 .num {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-dim);
  font-family: var(--font-body);
  font-weight: 500;
}

.legal-section h3 {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--light-text);
  margin: 1.5rem 0 0.75rem;
  letter-spacing: 0.02em;
}

.legal-section p { color: var(--light-text-muted); margin-bottom: 0.85rem; line-height: 1.85; }
.legal-section p:last-child { margin-bottom: 0; }
.legal-section a { color: var(--gold-dim); }
.legal-section strong { color: var(--light-text); font-weight: 500; }
.legal-section ul { margin: 0.75rem 0 0.85rem 1.5rem; }
.legal-section ul li { color: var(--light-text-muted); margin-bottom: 0.4rem; line-height: 1.75; }

.info-block {
  background: var(--light-bg-alt);
  border: 1px solid var(--light-border-strong);
  border-left: 3px solid var(--gold-dim);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin: 1.25rem 0;
}

.info-block p { margin-bottom: 0.4rem; font-size: 0.92rem; }
.info-block p:last-child { margin-bottom: 0; }

.alert-block {
  background: rgba(201,168,76,0.08);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.25rem 0;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.alert-block svg { flex-shrink: 0; margin-top: 2px; }
.alert-block p { margin: 0; font-size: 0.9rem; }

/* ── COOKIE TABLE ── */
.cookie-table-wrap {
  overflow-x: auto;
  margin: 1.25rem 0;
  border-radius: var(--radius);
  border: 1px solid var(--light-border-strong);
}

.cookie-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.cookie-table thead { background: var(--light-bg-alt); }

.cookie-table th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 500;
  color: var(--light-text);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--light-border-strong);
}

.cookie-table td {
  padding: 0.7rem 1rem;
  color: var(--light-text-muted);
  border-bottom: 1px solid var(--light-border);
  vertical-align: top;
}

.cookie-table tr:last-child td { border-bottom: none; }
.cookie-table tr:hover td { background: var(--light-bg-alt); }

.cookie-table code {
  font-size: 0.78rem;
  background: var(--light-bg-alt);
  padding: 0.1em 0.4em;
  border-radius: 2px;
  color: var(--light-text);
  font-family: monospace;
}

.badge {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2em 0.6em;
  border-radius: 2px;
  font-weight: 500;
}

.badge-func { background: rgba(80,140,80,0.15); color: #4a8a4a; }
.badge-stat { background: rgba(80,100,170,0.12); color: #4a60aa; }
.badge-mkt  { background: rgba(180,80,80,0.12);  color: #b05050; }

.service-block {
  background: var(--light-bg-alt);
  border: 1px solid var(--light-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1rem 0;
}

.service-block-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; }
.service-block-header strong { font-weight: 500; color: var(--light-text); }
.service-block p { font-size: 0.87rem; margin-bottom: 0; }

/* ── FOOTER ── */
footer {
  background: var(--black);
  border-top: 1px solid var(--border);
  padding: 2.5rem 3rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-inner p { color: var(--ink-dim); font-size: 0.8rem; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: var(--ink-dim); font-size: 0.8rem; text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }
.footer-links a.active { color: var(--gold); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav { padding: 0 1.25rem; }
  .page-hero { padding: 3rem 1.25rem 2.5rem; }
  .content-wrap { padding: 2.5rem 1.25rem 4rem; }
  footer { padding: 2rem 1.25rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
