/* Shared styles for the Terms and Privacy pages. Same tokens as index.html. */
:root {
  --bg: #f5f6f5; --surface: #fcfcfb; --ink: #16191a; --muted: #545b5f; --line: #dfe3e1;
  --accent: #0f766e; --accent-ink: #f4fbfa; --accent-soft: #e2f0ed;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1213; --surface: #161a1b; --ink: #eceeed; --muted: #a3aaa9; --line: #2a3031;
    --accent: #2fb5a5; --accent-ink: #062320; --accent-soft: #11302c;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif; background: var(--bg); color: var(--ink); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

header.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; text-decoration: none; color: var(--ink); letter-spacing: -0.01em; }
.brand svg { width: 34px; height: 34px; flex-shrink: 0; }
.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink); }
.btn { display: inline-flex; align-items: center; padding: 10px 18px; border-radius: 999px; background: var(--accent); color: var(--accent-ink) !important; white-space: nowrap; font-size: 14px; }
.btn:hover { filter: brightness(1.08); }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

main { padding: 56px 0 88px; }
.doc { max-width: none; }
.doc-body { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 64px; align-items: start; }
.doc-side { position: sticky; top: 92px; max-height: calc(100vh - 110px); overflow-y: auto; }
.doc-text { max-width: 860px; }
.doc-text > h2:first-child { margin-top: 0; }
.doc .kicker { color: var(--accent); font-weight: 600; font-size: 14px; margin-bottom: 10px; }
.doc h1 { font-size: clamp(34px, 4.6vw, 48px); line-height: 1.08; letter-spacing: -0.03em; margin-bottom: 12px; }
.doc .updated { color: var(--muted); font-size: 15px; margin-bottom: 28px; }
.summary { background: var(--accent-soft); border-radius: 16px; padding: 24px 28px; margin-bottom: 48px; }
.doc .summary ul { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 40px; }
.doc .summary h2 { font-size: 17px; margin: 0 0 10px; letter-spacing: -0.01em; }
.summary ul { margin: 0; }
.toc { padding: 0; }
.toc p { font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 12px; }
.doc .toc ol { display: grid; gap: 2px; padding: 0; margin: 0; list-style: none; border-left: 1px solid var(--line); }
.toc li { margin: 0; }
.toc a { display: block; padding: 5px 0 5px 16px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; font-size: 14.5px; line-height: 1.4; }
.toc a:hover { color: var(--ink); }
.toc a.active { color: var(--accent); border-left-color: var(--accent); font-weight: 600; }
.doc h2 { font-size: 23px; letter-spacing: -0.02em; line-height: 1.25; margin: 44px 0 12px; scroll-margin-top: 88px; }
.doc h3 { font-size: 17px; margin: 22px 0 8px; }
.doc p, .doc li { color: var(--ink); }
.doc p { margin-bottom: 14px; }
.doc ul, .doc ol { padding-left: 22px; margin-bottom: 14px; display: grid; gap: 6px; }
.doc .muted { color: var(--muted); }
.doc table { width: 100%; border-collapse: collapse; margin: 8px 0 18px; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc th { font-size: 13px; color: var(--muted); font-weight: 600; }
.table-scroll { overflow-x: auto; }
.contact { border-top: 1px solid var(--line); margin-top: 44px; padding-top: 24px; }

footer { border-top: 1px solid var(--line); padding: 32px 0; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer .links { display: flex; gap: 20px; flex-wrap: wrap; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--ink); }

@media (max-width: 960px) {
  .doc-body { grid-template-columns: 1fr; gap: 0; }
  .doc-side { position: static; max-height: none; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; margin-bottom: 40px; background: var(--surface); }
  .doc .toc ol { border-left: 0; grid-template-columns: 1fr 1fr; column-gap: 24px; }
  .toc a { padding-left: 0; border-left: 0; }
}
@media (max-width: 767px) {
  .doc .summary ul { grid-template-columns: 1fr; }
  .doc .toc ol { grid-template-columns: 1fr; }
  .wrap { padding: 0 16px; }
  main { padding: 36px 0 64px; }

  .summary { padding: 18px; }
}
@media (max-width: 380px) { .brand span { display: none; } }
@media print {
  header.nav, footer, .toc { display: none; }
  body { background: #fff; color: #000; }
}
