/* Shared styling for the legal pages (/privacy/, /cookies/, /terms/).
   A separate file rather than inline <style> so the three pages stay in sync
   and the CSP `style-src 'self'` covers it without an inline exception.
   Colors mirror the :root tokens on the main page — kept literal here because
   the legal pages are standalone documents, not fragments of index.html. */
:root {
  color-scheme: light;
  --navy: #1B2A4A;
  --navy-soft: #46567a;
  --navy-deep: #14203a;
  --gold: #C9A94E;
  --blue: #3B82F6;
  --bg: #FBFAF7;
  --border: #e7e3da;
  --heading: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --body: 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--navy);
  font-family: var(--body); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: var(--blue); }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 200; }
.skip:focus { left: 12px; top: 12px; }

/* header */
.legal-header { background: rgba(251,250,247,.94); border-bottom: 1px solid var(--border); }
.legal-nav { max-width: 880px; margin: 0 auto; padding: 0 24px; height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.legal-nav .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.legal-nav .brand img { height: 30px; width: auto; display: block; }
.legal-nav .brand .wm { font-family: var(--heading); font-weight: 700; font-size: 19px; letter-spacing: -.01em; color: var(--navy); }
.legal-nav .brand .wm .dot { color: var(--gold); }
.legal-nav .back { font-size: 14.5px; font-weight: 500; color: var(--navy-soft); text-decoration: none; }
.legal-nav .back:hover { color: var(--navy); }

/* document */
.legal-doc { max-width: 880px; margin: 0 auto; padding: 56px 24px 72px; }
.legal-doc .rule { width: 46px; height: 3px; background: var(--gold); border-radius: 3px; margin-bottom: 24px; }
.legal-doc h1 { font-family: var(--heading); font-weight: 600; font-size: clamp(30px, 5vw, 42px); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 10px; text-wrap: balance; }
.legal-doc .updated { font-family: var(--heading); font-weight: 600; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--navy-soft); margin: 0 0 32px; }
.legal-doc h2 { font-family: var(--heading); font-weight: 600; font-size: clamp(20px, 3vw, 24px); line-height: 1.25; letter-spacing: -.01em; margin: 40px 0 12px; padding-top: 24px; border-top: 1px solid var(--border); text-wrap: balance; }
.legal-doc h3 { font-family: var(--heading); font-weight: 600; font-size: 17px; margin: 26px 0 8px; }
.legal-doc p { margin: 0 0 16px; max-width: 74ch; color: #33415f; }
.legal-doc ul { margin: 0 0 16px; padding-left: 0; list-style: none; max-width: 74ch; }
.legal-doc li { position: relative; padding-left: 20px; margin-bottom: 9px; color: #33415f; }
.legal-doc li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.legal-doc li ul { margin: 9px 0 0; }
.legal-doc .contact { background: #fff; border: 1px solid var(--border); border-left: 3px solid var(--gold); border-radius: 12px; padding: 20px 22px; margin-top: 8px; }
.legal-doc .contact p { margin: 0 0 4px; }
.legal-doc .contact p:last-child { margin-bottom: 0; }

/* footer */
.legal-footer { background: var(--navy-deep); color: #8f9ab7; }
.legal-footer-inner { max-width: 880px; margin: 0 auto; padding: 28px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px; }
.legal-footer a { color: #aeb8cc; text-decoration: none; }
.legal-footer a:hover { color: #fff; }
.legal-footer .links { display: flex; gap: 20px; flex-wrap: wrap; }

@media (max-width: 640px) {
  .legal-doc { padding: 40px 20px 56px; }
  .legal-nav { padding: 0 20px; }
  .legal-nav .brand .wm { font-size: 17px; }
}
