/* Shared styles for secondary pages (privacy, terms, delete-account). Tokens mirror index.html. */
:root {
  --bg: #000;
  --text: #e9e7ef;
  --dim: rgba(233,231,239,.56);
  --faint: rgba(233,231,239,.24);
  --line: rgba(233,231,239,.08);
  --violet: #8a6cf4;
  --g: clamp(1rem, 3.2vw, 2.25rem);
  --mono: 'Geist Mono', ui-monospace, monospace;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--text);
  font-family: 'Geist', system-ui, sans-serif; font-weight: 300;
  font-size: 1rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  min-height: 100svh; display: flex; flex-direction: column;
}
a { color: inherit; }
::selection { background: var(--violet); color: #000; }
:focus-visible { outline: 1px solid var(--violet); outline-offset: 4px; }
.mono { font-family: var(--mono); font-weight: 400; font-size: .72rem; letter-spacing: .04em; }
.faint { color: var(--faint); }

body::after {
  content: ''; position: fixed; inset: -50%; pointer-events: none; z-index: 50; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Header / footer */
.top, .bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; padding: var(--g); }
.top a, .bottom a { text-decoration: none; transition: color .2s; }
.top nav, .bottom nav { display: flex; gap: 1.5rem; }
.top nav a:hover, .bottom a:hover, .top nav a[aria-current] { color: var(--text); }
.wordmark { font-family: var(--mono); font-size: .78rem; font-weight: 500; letter-spacing: .22em; }
.bottom { margin-top: auto; }

/* Document */
.doc { width: 100%; max-width: 720px; margin: 0 auto; padding: clamp(3rem, 10vh, 6rem) var(--g) clamp(5rem, 14vh, 8rem); }
.doc-head { margin-bottom: clamp(3rem, 8vh, 5rem); }
.doc-head .mono { display: block; }
.doc h1 { font-weight: 300; font-size: clamp(2.2rem, 6vw, 3.6rem); line-height: 1.05; letter-spacing: -.035em; margin: 1.5rem 0 1.25rem; }
.doc-head p { color: var(--dim); font-size: 1.05rem; max-width: 40rem; }
.doc-head .updated { margin-top: 2rem; }

.prose h2 { font-weight: 400; font-size: 1.15rem; letter-spacing: -.01em; margin: 3rem 0 .9rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.prose p, .prose li { color: var(--dim); }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: .75rem; }
.prose strong { color: var(--text); font-weight: 500; }
.prose ul { list-style: none; }
.prose li { position: relative; padding-left: 1.25rem; }
.prose li + li { margin-top: .3rem; }
.prose li::before { content: '—'; position: absolute; left: 0; color: var(--faint); }
.prose a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--faint); transition: color .2s, border-color .2s; }
.prose a:hover { color: var(--violet); border-color: var(--violet); }

/* Forms */
.field { display: block; margin-top: 2.5rem; }
.field label { display: block; margin-bottom: .75rem; }
.field input {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--faint);
  color: var(--text); font: inherit; font-size: 1.15rem; padding: .5rem 0; border-radius: 0;
  transition: border-color .2s;
}
.field input::placeholder { color: var(--faint); }
.field input:focus { outline: none; border-color: var(--violet); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; margin-top: 2.5rem; }
.btn {
  font-family: var(--mono); font-size: .75rem; letter-spacing: .08em; cursor: pointer;
  background: transparent; color: var(--text); border: 1px solid var(--faint);
  padding: .9rem 1.4rem; border-radius: 0; text-decoration: none; transition: all .2s;
}
.btn:hover { border-color: var(--text); }
.btn.danger { border-color: rgba(255,94,94,.5); color: #ff8a8a; }
.btn.danger:hover { background: #ff5e5e; border-color: #ff5e5e; color: #000; }
.link-quiet, .prose a.link-quiet { text-decoration: none; border: 0; color: var(--faint); transition: color .2s; }
.link-quiet:hover, .prose a.link-quiet:hover { color: var(--text); }
.notice { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.notice[hidden] { display: none; }
