/* Sure documents (/privacy, /terms, /support, /delete-account): the website's tokens and header,
   without its scripts. Keep the values in step with app.css. */
:root {
  color-scheme: light dark;
  --accent: #c2255c; --accent-fill: #c2255c; --accent-hover: #a61e4d; --accent-soft: #fdebf1;
  --text: #1d1b24; --muted: #5f5b6a; --bg: #ffffff; --surface: #fbf8fa; --card: #ffffff; --line: #ebe7ee; --line-strong: #8e8999;
  --danger: #c92a2a; --danger-fill: #c92a2a; --success: #237a35;
  --ring: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --accent: #f06595; --accent-fill: #d6336c; --accent-hover: #c2255c; --accent-soft: #3a1d29;
    --text: #f4f2f7; --muted: #aba6b6; --bg: #111015; --surface: #16141b; --card: #1c1a21; --line: #302c37; --line-strong: #6a6575;
    --danger: #ff8787; --success: #51cf66; }
}
:root[data-theme="dark"] { --accent: #f06595; --accent-fill: #d6336c; --accent-hover: #c2255c; --accent-soft: #3a1d29;
  --text: #f4f2f7; --muted: #aba6b6; --bg: #111015; --surface: #16141b; --card: #1c1a21; --line: #302c37; --line-strong: #6a6575;
  --danger: #ff8787; --success: #51cf66; }

* { box-sizing: border-box; }
body { margin: 0; display: flex; flex-direction: column; min-height: 100dvh; background: var(--bg); color: var(--text);
  font: 16px/1.65 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent-soft); }

.doc-top { border-bottom: 1px solid var(--line); background: var(--bg); }
.doc-top__inner, .doc-foot__inner { display: flex; align-items: center; gap: 24px; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.doc-top__inner { min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-size: 21px; font-weight: 750; letter-spacing: -.025em; text-decoration: none; }
.brand:hover { color: var(--text); }
.brand img { width: 32px; height: 32px; border-radius: 9px; display: block; }
.doc-top nav { display: flex; gap: 2px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.doc-top nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; color: var(--muted); font-size: 15px; font-weight: 550; text-decoration: none; white-space: nowrap; }
.doc-top nav a:hover { color: var(--text); background: color-mix(in srgb, var(--text) 6%, transparent); }
.doc-top nav a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }

main { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: 48px 16px 72px; }
article { padding: 0; margin: 0 0 40px; background: none; }
article + article { padding-top: 32px; border-top: 1px solid var(--line); }
h1 { margin: 0 0 8px; font-size: clamp(30px, 4vw, 40px); line-height: 1.12; letter-spacing: -.03em; font-weight: 750; }
h2 { margin: 36px 0 10px; font-size: 21px; line-height: 1.3; letter-spacing: -.015em; font-weight: 650; }
article > h2:first-child { margin-top: 0; }
p, li { color: var(--text); }
ul { padding-left: 22px; } li + li { margin-top: 6px; } li::marker { color: var(--accent); }
.muted { color: var(--muted); }
h1 + .muted { margin-top: 0; font-size: 15px; }

/* The forms on /support and /delete-account. */
form { margin-top: 8px; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
label { display: block; margin: 16px 0 6px; font-size: 14px; font-weight: 600; }
form > label:first-child { margin-top: 0; }
input, textarea, select { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--card); color: inherit; font: inherit;
  transition: border-color 120ms, box-shadow 120ms; }
textarea { min-height: 120px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
button { width: 100%; min-height: 48px; margin-top: 16px; border: 0; border-radius: 12px; background: var(--accent-fill); color: #fff; font: inherit; font-weight: 600; cursor: pointer; transition: background 120ms; }
button:hover:not(:disabled) { background: var(--accent-hover); }
button.danger { background: var(--danger-fill); }
button.danger:hover:not(:disabled) { background: color-mix(in srgb, var(--danger-fill) 86%, #000); }
button:disabled { opacity: .6; cursor: default; }
#status { min-height: 24px; margin: 12px 0 0; font-weight: 600; }
#status.error { color: var(--danger); }

.doc-foot { border-top: 1px solid var(--line); background: var(--surface); }
.doc-foot__inner { flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-block: 28px; color: var(--muted); font-size: 14px; }
.doc-foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.doc-foot a { color: var(--muted); text-decoration: none; } .doc-foot a:hover { color: var(--accent); }

@media (max-width: 599px) {
  .doc-top__inner { min-height: 60px; gap: 12px; }
  .doc-top nav a { padding: 0 10px; font-size: 14px; }
  main { padding: 32px 16px 56px; }
  form { padding: 18px; }
}
