/* Shared styling for the legal pages (privacy.html / terms.html) —
   same brand tokens as index.html, trimmed to what a text page needs. */
@font-face { font-family: 'Baloo 2'; src: url('fonts/Baloo2.woff2') format('woff2'); font-weight: 400 800; font-display: swap; }
@font-face { font-family: 'Roboto'; src: url('fonts/Roboto.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --sun: #F47920; --sun-deep: #E06A12; --sun-soft: #FDEEE0;
  --navy: #1D2B4C;
  --ink: #333B4E; --ink-2: #67707F; --ink-3: #98A0AD;
  --ground: #FAF7F2; --surface: #FFFFFF; --line: #E7E1D6;
  --display: 'Baloo 2', 'Trebuchet MS', system-ui, sans-serif;
  --body: 'Roboto', 'Segoe UI', system-ui, sans-serif;
}
/* same warm-charcoal dark palette as the site's styles.css */
:root[data-theme="dark"] {
  --sun-soft: #33230F; --navy: #F3F1EA;
  --ink: #D8D6D2; --ink-2: #A5A29C; --ink-3: #77746E;
  --ground: #1E1C1A; --surface: #282623; --line: #3D3A36;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --sun-soft: #33230F; --navy: #F3F1EA;
    --ink: #D8D6D2; --ink-2: #A5A29C; --ink-3: #77746E;
    --ground: #1E1C1A; --surface: #282623; --line: #3D3A36;
  }
}

.logo-dark-only { display: none !important; }
.logo-light-only { display: inline-block !important; }
:root[data-theme="dark"] .logo-light-only { display: none !important; }
:root[data-theme="dark"] .logo-dark-only { display: inline-block !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-light-only { display: none !important; }
  :root:not([data-theme="light"]) .logo-dark-only { display: inline-block !important; }
}
.ico-moon { display: none; }
:root[data-theme="dark"] .ico-sun { display: none; }
:root[data-theme="dark"] .ico-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ico-sun { display: none; }
  :root:not([data-theme="light"]) .ico-moon { display: block; }
}

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--body); font-size: 16px; line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--sun-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--ground) 85%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
/* same container as the site's .wrap (styles.css) — the legal pages must not
   feel narrower than the rest of the product */
.top-in { max-width: 1320px; margin: 0 auto; padding: 13px 32px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.top-logo { height: 27px; width: auto; display: block; }
.top-side { display: flex; align-items: center; gap: 8px; }
.back-link { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.back-link:hover { color: var(--sun-deep); }
.theme-btn { background: none; border: none; cursor: pointer; color: var(--ink-2); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; padding: 0; }
.theme-btn:hover { background: var(--sun-soft); color: var(--sun-deep); }
.theme-btn svg { width: 18px; height: 18px; }

main { max-width: 1320px; margin: 0 auto; padding: 52px 32px 80px; }
h1 { font-family: var(--display); font-weight: 800; font-size: clamp(1.9rem, 4vw, 2.6rem); color: var(--navy); line-height: 1.15; margin: 0 0 6px; }
.effective { color: var(--ink-3); font-size: 13.5px; margin: 0 0 36px; }
h2 { font-family: var(--display); font-weight: 700; font-size: 1.28rem; color: var(--navy); margin: 40px 0 10px; }
h3 { font-family: var(--body); font-weight: 600; font-size: 1.02rem; color: var(--navy); margin: 22px 0 6px; }
p, li { color: var(--ink); font-size: 15.5px; }
p { margin: 0 0 12px; }
ul { margin: 0 0 12px; padding-left: 22px; }
li { margin-bottom: 6px; }
strong { color: var(--navy); font-weight: 600; }
.note {
  background: var(--sun-soft); border: 1px solid color-mix(in srgb, var(--sun) 25%, transparent);
  border-radius: 10px; padding: 14px 18px; font-size: 14.5px; margin: 0 0 28px;
}
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; margin: 0 0 34px; }
.toc b { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); margin-bottom: 8px; font-weight: 700; }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; font-size: 14px; }
.toc li { margin-bottom: 4px; }
@media (max-width: 620px) { .toc ol { columns: 1; } }

footer { border-top: 1px solid var(--line); }
.foot { max-width: 1320px; margin: 0 auto; padding: 26px 32px 34px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; font-size: 13px; color: var(--ink-2); }
.foot a { color: var(--ink-2); }
.foot a:hover { color: var(--sun-deep); }
.foot .sign { margin-left: auto; font-family: var(--display); font-weight: 700; color: var(--navy); font-size: 15px; }
@media (max-width: 700px) {
  .foot { flex-direction: column; align-items: center; text-align: center; gap: 14px; }
  .foot .sign { margin-left: 0; }
}
