/* Shared styles for the legal pages (privacy.html, terms.html).
   Brand tokens match the landing page (index.html): the app's BrandLight / BrandDark. */

@font-face { font-family: "Plus Jakarta Sans"; src: url("assets/plus_jakarta_sans.ttf"); font-weight: 200 800; font-display: swap; }

:root {
  color-scheme: light dark;
  --bg: #f4f7fd;
  --surface: #ffffff;
  --surface-2: #eef2f9;
  --ink: #121826;
  --muted: #5b6475;
  --line: #dde3ee;
  --blue: #0077e6;
  --violet: #7d5cda;
  --pink: #c93e87;
  --shadow: 0 24px 60px -24px rgba(20, 30, 60, .28);
  --glow-1: #b9d4fa;
  --glow-2: #d2c4f6;
  --glow-3: #f4c3dd;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0f17;
    --surface: #141a24;
    --surface-2: #1b2230;
    --ink: #eef1f6;
    --muted: #a3abba;
    --line: #273042;
    --blue: #4da3ff;
    --violet: #a48cf0;
    --pink: #e67ab3;
    --shadow: 0 24px 60px -24px rgba(0, 0, 0, .7);
    --glow-1: #10294a;
    --glow-2: #231a40;
    --glow-3: #3a1630;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.6 "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .9em;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: .1em .4em; }

.wrap { width: min(820px, 100% - 32px); margin: 0 auto; }

/* the same drifting brand glow as the landing page */
.glow { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.glow i { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(9vmax); opacity: .7; }
.glow .a { background: var(--glow-1); left: -20vmax; top: -25vmax; animation: d1 26s ease-in-out infinite alternate; }
.glow .b { background: var(--glow-2); right: -20vmax; top: 5vmax; animation: d2 31s ease-in-out infinite alternate; }
.glow .c { background: var(--glow-3); left: 15vmax; bottom: -30vmax; animation: d3 29s ease-in-out infinite alternate; }
@keyframes d1 { to { transform: translate(18vmax, 14vmax); } }
@keyframes d2 { to { transform: translate(-16vmax, 18vmax); } }
@keyframes d3 { to { transform: translate(14vmax, -16vmax); } }
@media (prefers-reduced-motion: reduce) { .glow i { animation: none; } }

header.top { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: -.02em; font-size: 20px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.top nav { display: flex; gap: 24px; font-weight: 600; font-size: 15px; }
.top nav a { color: var(--muted); }
.top nav a:hover { color: var(--ink); text-decoration: none; }

main.legal { background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
  box-shadow: var(--shadow); padding: clamp(24px, 5vw, 56px); margin: 16px 0 40px; }
main.legal h1 { font-size: clamp(32px, 5.5vw, 48px); line-height: 1.08; letter-spacing: -.035em;
  font-weight: 800; margin: 0 0 8px; }
main.legal .meta { color: var(--muted); font-size: 15px; margin: 0 0 28px; }
main.legal h2 { font-size: clamp(21px, 3vw, 26px); letter-spacing: -.02em; font-weight: 800;
  margin: 40px 0 10px; }
main.legal h3 { font-size: 18px; letter-spacing: -.01em; font-weight: 700; margin: 24px 0 8px; }
main.legal p { margin: 0 0 14px; color: var(--ink); }
main.legal ul { margin: 0 0 14px; padding-left: 22px; }
main.legal li { margin: 0 0 9px; }
main.legal strong { font-weight: 700; }

.tldr { background: var(--surface-2); border: 1px solid var(--line); border-left: 4px solid var(--violet);
  border-radius: 14px; padding: 18px 20px; margin: 0 0 8px; }
.tldr p { margin: 0; color: var(--ink); }

table { width: 100%; border-collapse: collapse; margin: 6px 0 18px; font-size: 15.5px; }
th, td { text-align: left; vertical-align: top; padding: 11px 12px; border-bottom: 1px solid var(--line); }
th { font-weight: 700; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
td:first-child { font-weight: 600; white-space: nowrap; }
@media (max-width: 560px) { td:first-child { white-space: normal; } }

.placeholder { background: color-mix(in oklab, var(--pink) 16%, transparent); color: var(--pink);
  border-radius: 6px; padding: .1em .4em; font-weight: 600; }

.back { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-weight: 600; }

footer { padding: 24px 0 48px; color: var(--muted); font-size: 14px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--muted); }
footer a:hover { color: var(--ink); }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .top nav { gap: 16px; font-size: 14px; }
}
