/* Chrome + document styles for /terms and /privacy (same tokens as landing). */
:root {
  color-scheme: light dark;
  --blue: #1565C0;
  --blue-dark: #0D47A1;
  --hero-top: #E3F2FD;
  --ink: #0F1B2A;
  --muted: #5A6B7E;
  --surface: #FFFFFF;
  --bg: #F6F9FC;
  --border: rgba(15,27,42,.06);
  --border-strong: rgba(15,27,42,.15);
  --header-bg: rgba(255,255,255,.92);
  --card-shadow: rgba(15,27,42,.08);
}
:root[data-theme="dark"] {
  --blue: #64A9F0;
  --blue-dark: #8FC2F5;
  --hero-top: #10233A;
  --ink: #E8EEF4;
  --muted: #9FB0C0;
  --surface: #16202A;
  --bg: #0F1519;
  --border: rgba(255,255,255,.08);
  --border-strong: rgba(255,255,255,.22);
  --header-bg: rgba(15,21,25,.92);
  --card-shadow: rgba(0,0,0,.45);
}
:root[data-theme="dark"] .nav a.cta { background: #1565C0; }
:root[data-theme="dark"] .nav a.cta:hover { background: #0D47A1; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) {
    --blue: #64A9F0;
    --blue-dark: #8FC2F5;
    --hero-top: #10233A;
    --ink: #E8EEF4;
    --muted: #9FB0C0;
    --surface: #16202A;
    --bg: #0F1519;
    --border: rgba(255,255,255,.08);
    --border-strong: rgba(255,255,255,.22);
    --header-bg: rgba(15,21,25,.92);
    --card-shadow: rgba(0,0,0,.45);
  }
  :root:not([data-theme="light"]):not([data-theme="dark"]) .nav a.cta { background: #1565C0; }
  :root:not([data-theme="light"]):not([data-theme="dark"]) .nav a.cta:hover { background: #0D47A1; }
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
header {
  position: sticky; top: 0; z-index: 10;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
@media (orientation: landscape) and (max-height: 500px) {
  header { position: relative; top: auto; }
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { display: flex; align-items: center; text-decoration: none; border-radius: 8px; }
.brand img { height: 36px; width: auto; display: block; }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav a.cta {
  background: var(--blue); color: #fff; text-decoration: none;
  padding: 7px 16px; border-radius: 999px; font-weight: 600; font-size: .85rem;
  transition: background .2s; white-space: nowrap;
}
.nav a.cta:hover { background: var(--blue-dark); }
.theme-btn {
  appearance: none; border: 1px solid var(--border-strong); border-radius: 999px;
  background: var(--surface); color: var(--ink); width: 40px; height: 40px;
  font-size: 1.1rem; cursor: pointer; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
}
.theme-btn:hover { opacity: .85; }
.lang {
  appearance: none; -webkit-appearance: none;
  border: 1px solid var(--border-strong); border-radius: 999px;
  background: var(--surface) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="6" viewBox="0 0 10 6"><path d="M1 1l4 4 4-4" stroke="%235A6B7E" stroke-width="1.5" fill="none" stroke-linecap="round"/></svg>') no-repeat right 12px center;
  padding: 8px 30px 8px 14px; font-size: .88rem; font-weight: 600; color: var(--ink);
  cursor: pointer;
}
[dir="rtl"] .lang { background-position: left 12px center; padding: 8px 14px 8px 30px; }
@media (max-width: 600px) {
  .nav { gap: 8px; }
  .nav .wrap, .wrap.nav { padding: 0 12px; }
  .nav-right { gap: 6px; }
  .brand img { height: 28px; }
  .theme-btn { width: 34px; height: 34px; font-size: 1rem; }
  .lang {
    font-size: .8rem; padding: 7px 24px 7px 10px;
    background-position: right 8px center;
  }
  [dir="rtl"] .lang { background-position: left 8px center; padding: 7px 10px 7px 24px; }
  .nav a.cta { padding: 8px 12px; font-size: .82rem; }
}
footer { background: #0F1B2A; color: #B8C4D0; padding: 44px 0; font-size: .9rem; margin-top: auto; }
footer .cols { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer a { color: #E3ECF5; text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer .brandline { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; }
footer .brandline img { width: 24px; height: 24px; border-radius: 6px; }
footer ul { list-style: none; margin-top: 10px; }
footer li { margin-bottom: 6px; }
footer .fine { margin-top: 28px; border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px; font-size: .8rem; color: #8296AA; }

.legal-doc { max-width: 760px; margin: 0 auto; padding: 48px 24px 72px; }
.legal-doc h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); letter-spacing: -0.02em; margin-bottom: 8px; }
.legal-doc .updated {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: 6px 12px; font-size: .85rem; color: var(--muted);
  margin: 8px 0 28px;
}
.legal-doc details {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; margin-bottom: 10px;
}
.legal-doc summary {
  cursor: pointer; list-style: none; padding: 14px 18px;
  font-weight: 700; color: var(--blue);
}
.legal-doc summary::-webkit-details-marker { display: none; }
.legal-doc .body {
  padding: 0 18px 16px; white-space: pre-wrap; font-size: .95rem; color: var(--ink);
}
