/* Privacy policy page — standalone, mirrors the main site tokens */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #1c0f08;
  --surface: #2a1810;
  --border: #4a2d18;
  --text: #f5f0e8;
  --muted: #baa898;
  --accent: #ff9e8a; /* lighter coral for the legal pages */
  --font: "filson-soft", system-ui, -apple-system, "Segoe UI", sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--text); }

/* Links inside sentences are not distinguished by colour alone (WCAG 1.4.1):
   they are bold, and gain an underline on hover and keyboard focus. */
.legal p a, .legal li a, .legal td a { font-weight: 700; }
.legal p a:hover, .legal p a:focus-visible,
.legal li a:hover, .legal li a:focus-visible,
.legal td a:hover, .legal td a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.legal-toc a { font-weight: 400; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 20;
  background: var(--accent);
  color: #1c0f08;
  padding: 12px 20px;
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

.legal-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 48px;
  background: rgba(28, 15, 8, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.legal-logo {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
}
.legal-logo span { color: var(--accent); }

.legal-back {
  padding: 10px 0;
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.legal-back:hover { color: var(--accent); }

.legal { padding: 72px 32px 96px; }
.legal-inner { max-width: 780px; margin: 0 auto; }

h1 {
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.02em;
}
h1 em { color: var(--accent); font-style: italic; }

.legal-meta { color: var(--muted); font-size: 14px; margin: 16px 0 32px; }
.legal-lead { font-size: 18px; margin-bottom: 40px; }

h2 {
  font-size: 24px;
  line-height: 1.25;
  margin: 56px 0 16px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

p { margin-bottom: 16px; }
ul, ol { margin: 0 0 16px 22px; }
li { margin-bottom: 8px; }
li::marker { color: var(--accent); }
strong { font-weight: 700; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  background: var(--surface);
  padding: 1px 6px;
  border-radius: 4px;
  overflow-wrap: anywhere;
}

.legal-toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px 28px 12px;
  margin-bottom: 8px;
}
.legal-toc-title {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.legal-toc ol { margin-left: 20px; columns: 2; column-gap: 40px; }
.legal-toc li { break-inside: avoid; margin-bottom: 6px; }
.legal-toc a { color: var(--text); text-decoration: none; }
.legal-toc a:hover { color: var(--accent); }

.legal-card {
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  padding: 16px 20px;
}

.legal-table-wrap { overflow-x: auto; margin: 8px 0 20px; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.55;
}
th, td {
  text-align: left;
  vertical-align: top;
  padding: 14px 16px;
  border: 1px solid var(--border);
}
th {
  background: var(--surface);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.legal-footer { background: #0d0704; border-top: 1px solid var(--border); }
.legal-footer-inner {
  max-width: 780px;
  margin: 0 auto;
  padding: 28px 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: 12px;
  color: var(--muted);
}
.legal-footer p { margin: 0; }
.legal-footer a { color: var(--muted); display: inline-block; padding: 6px 2px; }
.legal-footer a[aria-current="page"] { color: var(--text); }
.legal-footer a:hover { color: var(--accent); }

@media (max-width: 720px) {
  .legal-header { padding: 16px 20px; }
  .legal { padding: 48px 20px 72px; }
  .legal-toc ol { columns: 1; }
  h2 { font-size: 21px; margin-top: 40px; }
  .legal-lead { font-size: 17px; }

  /* Stack the table into labelled cards on phones */
  table, thead, tbody, tr, th, td { display: block; width: 100%; }
  thead { position: absolute; left: -9999px; }
  tr { border: 1px solid var(--border); border-radius: 8px; margin-bottom: 16px; overflow: hidden; }
  td { border: 0; border-bottom: 1px solid var(--border); padding: 12px 16px; }
  td:last-child { border-bottom: 0; }
  td::before {
    content: attr(data-label);
    display: block;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
