/* Legal pages (privacy, terms, subprocessors, AI disclosure).
   Same tokens, header and footer as index.html; long-form reading layout. */
:root {
  --bg-base: #ffffff;
  --bg-surface: #f9f9fb;
  --border-light: #e5e5e8;
  --border-strong: #d1d1d6;
  --text-main: #0a0a0b;
  --text-muted: #5e5e62;
  --text-inverse: #ffffff;
  --accent-primary: #1d4ed8;
  --accent-surface: #eff6ff;
  --radius-sm: 12px;
  --radius-md: 20px;
  --max-width: 1240px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-base);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  color: var(--text-main);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

a { color: inherit; text-decoration: none; }

.wrap { width: min(var(--max-width), calc(100% - 32px)); margin: 0 auto; }

/* Navigation (as index.html) */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid var(--border-light);
  backdrop-filter: blur(20px);
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; font-size: 18px; }
.brand-mark {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: grid; place-items: center;
  background: var(--text-main);
  color: var(--text-inverse);
  font-family: 'Playfair Display', serif;
  font-weight: 800;
}
.nav-links { display: flex; gap: 28px; font-weight: 500; color: var(--text-muted); font-size: 15px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text-main); }

/* Page layout */
.legal {
  padding: 136px 0 96px;
  display: grid;
  grid-template-columns: 220px minmax(0, 720px);
  gap: 64px;
  justify-content: center;
}
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 16px;
}
.legal h1 { font-size: clamp(36px, 5vw, 52px); margin-bottom: 16px; }
.meta { color: var(--text-muted); font-size: 14px; margin-bottom: 32px; }
.summary {
  background: var(--accent-surface);
  border: 1px solid #dbe7ff;
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin-bottom: 40px;
  font-size: 15px;
}
.summary ul { margin: 8px 0 0 20px; }
.summary li { margin-bottom: 4px; }

.legal article h2 { font-size: 26px; margin: 48px 0 14px; }
.legal article h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  margin: 24px 0 8px;
}
.legal article p { margin-bottom: 14px; }
.legal article ul, .legal article ol { margin: 0 0 16px 22px; }
.legal article li { margin-bottom: 6px; }
.legal article a { color: var(--accent-primary); text-decoration: underline; text-underline-offset: 2px; }
.legal article strong { font-weight: 700; }

/* Table of contents */
.toc { position: sticky; top: 112px; align-self: start; font-size: 14px; }
.toc p { font-weight: 700; margin-bottom: 10px; }
.toc ol { list-style: none; display: grid; gap: 8px; }
.toc a { color: var(--text-muted); }
.toc a:hover { color: var(--text-main); }

/* Tables */
.table-scroll { overflow-x: auto; margin: 8px 0 24px; border: 1px solid var(--border-light); border-radius: var(--radius-sm); }
table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.55; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--border-light); }
th { background: var(--bg-surface); font-weight: 700; white-space: nowrap; }
tr:last-child td { border-bottom: none; }

/* Footer (as index.html, plus legal links) */
footer {
  padding: 40px 0;
  background: var(--bg-base);
  border-top: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 14px;
}
.footer-wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--text-main); }

@media (max-width: 992px) {
  .legal { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 112px; }
  .toc { display: none; }
  .nav-links { display: none; }
}
@media print {
  .nav, .toc, footer { display: none; }
  .legal { padding-top: 0; display: block; }
}
