/* ============================================================
   LEGAL PAGES — /privacy, /terms, /refunds
   Same tokens and fonts as index.html ("Late Set"), as a plain
   readable document. Served by rewrites in firebase.json.
   ============================================================ */
:root {
  --bg: #0a0908;
  --surface: #15120f;
  --line: rgba(242, 235, 221, 0.07);
  --line-2: rgba(242, 235, 221, 0.12);
  --line-3: rgba(242, 235, 221, 0.2);
  --text: #f2ebdd;
  --text-muted: #aca390;
  --text-faint: #736b5e;
  --accent: #d4ae66;
  --accent-hi: #ecd29a;
  --accent-line: rgba(212, 174, 102, 0.36);
  --font-display: 'Newsreader', Georgia, serif;
  --font-body: 'Newsreader', Georgia, serif;
  --font-ui: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
body {
  background: radial-gradient(1100px 520px at 50% -140px, rgba(212, 174, 102, 0.075), transparent 70%), var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  min-height: 100vh;
}
::selection { background: rgba(212, 174, 102, 0.3); color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.lg-head { position: sticky; top: 0; z-index: 10; height: 56px; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: linear-gradient(180deg, rgba(10, 9, 8, 0.97), rgba(10, 9, 8, 0.9)); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.lg-brand { display: flex; align-items: center; gap: 11px; color: var(--text); text-decoration: none; font-family: var(--font-display); font-size: 1.12rem; font-weight: 600; white-space: nowrap; }
.lg-brand svg { width: 22px; height: 22px; flex: 0 0 auto; }
.lg-nav { display: flex; gap: 18px; font-family: var(--font-ui); font-size: 0.8rem; }
.lg-nav a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.lg-nav a:hover, .lg-nav a[aria-current="page"] { color: var(--accent-hi); }

.lg-main { max-width: 700px; margin: 0 auto; padding: 56px 24px 40px; }
.lg-kicker { font-family: var(--font-ui); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.1rem, 6vw, 2.8rem); line-height: 1.1; letter-spacing: -0.01em; margin-bottom: 12px; }
.lg-updated { font-family: var(--font-ui); font-size: 0.8rem; color: var(--text-faint); margin-bottom: 30px; }
.lg-lede { font-size: 1.2rem; line-height: 1.55; color: var(--text-muted); margin-bottom: 8px; }

h2 { font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; line-height: 1.25; margin: 44px 0 12px; padding-top: 22px; border-top: 1px solid var(--line); scroll-margin-top: 76px; }
h3 { font-family: var(--font-ui); font-size: 0.92rem; font-weight: 600; margin: 24px 0 8px; color: var(--text); }
p, li { font-size: 1.08rem; line-height: 1.65; color: var(--text); }
p { margin-bottom: 14px; }
ul { margin: 0 0 16px 1.2em; }
li { margin-bottom: 7px; padding-left: 4px; }
li::marker { color: var(--accent); }
strong { font-weight: 600; }
a { color: var(--accent-hi); text-underline-offset: 3px; text-decoration-color: var(--accent-line); }
a:hover { text-decoration-color: var(--accent-hi); }

.lg-box { border: 1px solid var(--accent-line); border-radius: 16px; padding: 20px 22px; margin: 22px 0; background: linear-gradient(135deg, rgba(212, 174, 102, 0.1), rgba(212, 174, 102, 0.02)); }
.lg-box p:last-child, .lg-box ul:last-child { margin-bottom: 0; }

.lg-table { width: 100%; border-collapse: collapse; margin: 14px 0 20px; font-family: var(--font-ui); font-size: 0.86rem; line-height: 1.5; }
.lg-table th, .lg-table td { text-align: left; vertical-align: top; padding: 11px 12px 11px 0; border-bottom: 1px solid var(--line-2); }
.lg-table th { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); }
.lg-table td:first-child { font-weight: 600; color: var(--text); width: 30%; }
.lg-table td { color: var(--text-muted); }

.lg-cookie { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-family: var(--font-ui); font-size: 0.86rem; color: var(--text-muted); }
.lg-btn { font-family: var(--font-ui); font-size: 0.82rem; font-weight: 600; padding: 9px 16px; border-radius: 999px; cursor: pointer; border: 1px solid var(--line-3); background: rgba(242, 235, 221, 0.03); color: var(--text); transition: all 0.2s var(--ease); }
.lg-btn:hover { border-color: var(--accent); color: var(--accent-hi); }

.lg-foot { max-width: 700px; margin: 40px auto 0; padding: 26px 24px 48px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; font-family: var(--font-ui); font-size: 0.82rem; color: var(--text-faint); }
.lg-foot a { color: var(--text-muted); text-decoration: none; }
.lg-foot a:hover { color: var(--accent-hi); }

@media (max-width: 600px) {
  .lg-head { padding: 0 16px; }
  .lg-nav { gap: 14px; font-size: 0.76rem; }
  .lg-brand span { display: none; }
  .lg-main { padding: 36px 16px 24px; }
  p, li { font-size: 1.03rem; }
  .lg-table, .lg-table tbody, .lg-table tr, .lg-table td { display: block; width: 100%; }
  .lg-table thead { display: none; }
  .lg-table tr { padding: 12px 0; border-bottom: 1px solid var(--line-2); }
  .lg-table td { border: none; padding: 2px 0; }
  .lg-table td:first-child { width: 100%; margin-bottom: 4px; }
  .lg-foot { padding: 22px 16px 40px; }
}

/* Touch screens: bigger hit areas for the header links, same look. */
@media (hover: none) and (pointer: coarse) {
  .lg-nav a { padding: 10px 0; }
  .lg-brand { padding: 10px; margin: -10px; }
}
