/* Shared styling for the standalone legal pages (privacy.html, terms.html).
   Mirrors the landing's palette, Sora display font, and light/dark theming. */
:root {
  --bg: #f4f1ea;
  --surface: #ffffff;
  --surface-2: #faf8f2;
  --line: #e3ded2;
  --ink: #211f1a;
  --muted: #6c675c;
  --accent: #355c4b;
  --accent-soft: #d9eadf;
  --accent-line: #c4ddcf;
  --shadow: 0 10px 40px rgba(33, 31, 26, 0.1);
  color-scheme: light;
}
:root[data-theme='dark'] {
  --bg: #14160f;
  --surface: #1d2018;
  --surface-2: #23271d;
  --line: #383d30;
  --ink: #ece9df;
  --muted: #a0a08f;
  --accent: #82bd9a;
  --accent-soft: #233428;
  --accent-line: #364d3b;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #14160f;
    --surface: #1d2018;
    --surface-2: #23271d;
    --line: #383d30;
    --ink: #ece9df;
    --muted: #a0a08f;
    --accent: #82bd9a;
    --accent-soft: #233428;
    --accent-line: #364d3b;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
.display { font-family: 'Sora', 'Segoe UI', system-ui, -apple-system, sans-serif; letter-spacing: -0.01em; }
a { color: var(--accent); }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 22px; }

header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 22px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; }
.logo { position: relative; width: 22px; height: 22px; border-radius: 7px; background: var(--accent); flex: none; }
.logo::after { content: ''; position: absolute; inset: 6px; border-radius: 50%; background: var(--bg); }
.head-right { display: flex; align-items: center; gap: 12px; }
/* Blog/Guides show in the header on desktop; on small screens they collapse
   (they remain reachable in the footer) to keep the header from crowding. */
@media (max-width: 560px) { .head-right .nav-link { display: none; } }
.iconbtn {
  appearance: none; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); width: 44px; height: 44px; border-radius: 10px; cursor: pointer; font-size: 15px;
}
/* Tap targets: keep interactive header/footer elements at the 44px minimum. */
.ghost { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; text-decoration: none; font-weight: 600; font-size: 14.5px; }

main { padding: 16px 0 64px; }
.doc { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 30px 28px; }
.doc h1 { font-size: clamp(28px, 5vw, 38px); margin: 0 0 6px; }
.doc .updated { color: var(--muted); font-size: 13.5px; margin: 0 0 22px; }
.doc h2 { font-size: 19px; margin: 30px 0 8px; }
.doc h3 { font-size: 15.5px; margin: 18px 0 4px; }
.doc p, .doc li { font-size: 15px; color: var(--ink); }
.doc p { margin: 0 0 12px; }
.doc ul { margin: 0 0 14px; padding-left: 20px; }
.doc li { margin: 4px 0; }
.doc .lead { color: var(--muted); }
.note {
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  border-radius: 12px; padding: 12px 14px; font-size: 14px; margin: 0 0 20px;
}
.linkbtn {
  appearance: none; background: none; border: none; padding: 0;
  color: var(--accent); font: inherit; cursor: pointer; text-decoration: underline;
}

footer { border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 18px; align-items: center; justify-content: space-between; padding: 22px; color: var(--muted); font-size: 13.5px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 16px; }
footer a, footer .linkbtn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; color: var(--muted); text-decoration: none; }
footer a:hover, footer .linkbtn:hover { color: var(--ink); }
/* Links span the full top row; the brand and spotthecue.com sit on the row
   beneath, aligned to opposite edges. */
.foot-nav { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 16px; flex-basis: 100%; order: -1; }
.foot-meta { opacity: 0.85; margin-left: auto; }
