/* Card 1277 - the privacy policy and the terms. Built on the landing page's
   own tokens, nav and footer (landing.php), so the two pages read as part of
   the site. One reading column; the short version is a card, not a tinted
   inset; sections are plain h2 + text. */
:root {
  --bg: #0B0C0E; --bg-2: #101216; --panel: #15171D; --line: #23262F; --line-2: #1A1D24;
  --text: #F2F3F5; --muted: #9AA1AC; --dim: #6B7280; --amber: #EAA23D; --ink: #17120A;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --maxw: 1180px; --pad: clamp(20px, 5vw, 48px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--text); }
body { font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }

/* nav and footer: landing.php's own */
.nav { position: sticky; top: 0; z-index: 90; height: 62px; background: rgba(11,12,14,.85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line-2); }
.nav-in { height: 62px; display: flex; align-items: center; gap: 30px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 1.02rem; letter-spacing: -.02em; }
.brand svg { width: 21px; height: 21px; flex: none; }
.nav-back { margin-left: auto; font-size: .92rem; color: var(--muted); }
.nav-back:hover { color: var(--text); }
footer { border-top: 1px solid var(--line-2); padding: 30px 0; margin-top: 88px; }
.foot { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; font-size: .87rem; color: var(--dim); }
.foot-links { display: flex; gap: 20px; margin-left: auto; flex-wrap: wrap; }
.foot-links a:hover { color: var(--text); }
.foot-links a[aria-current="page"] { color: var(--text); }

/* the page */
.doc { max-width: 720px; margin: 0 auto; padding: 56px var(--pad) 0; }
.doc-kicker { font-family: var(--mono); font-size: .8rem; color: var(--dim); letter-spacing: .02em; }
.doc h1 { font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 500; letter-spacing: -0.028em; line-height: 1.1; margin: 10px 0 12px; }
.doc-meta { color: var(--muted); font-size: .94rem; }
.doc-meta a { color: var(--text); border-bottom: 1px solid var(--line); }
.doc-meta a:hover { border-color: var(--amber); }

/* the short version: a card of label / sentence rows */
.short { margin: 36px 0 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.doc .short-h { margin: 0; padding: 18px 22px 6px; font-size: .8rem; font-weight: 400; line-height: 1.4; font-family: var(--mono); color: var(--dim); letter-spacing: .02em; }
.short dl { display: grid; grid-template-columns: 170px 1fr; }
.short dt, .short dd { padding: 14px 22px; border-top: 1px solid var(--line-2); }
.short dl > :nth-child(1), .short dl > :nth-child(2) { border-top: 0; }
.short dt { color: var(--muted); font-size: .92rem; padding-right: 0; }
.short dd { font-size: .97rem; }
.short dd b { font-weight: 600; }

.doc h2 { font-size: 1.22rem; font-weight: 500; letter-spacing: -0.015em; line-height: 1.3; margin: 44px 0 10px; scroll-margin-top: 80px; }
.doc p, .doc li { color: var(--muted); font-size: 1rem; line-height: 1.7; }
.doc p + p, .doc ul + p { margin-top: 12px; }
.doc p b, .doc li b { color: var(--text); font-weight: 500; }
.doc ul { margin: 10px 0 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.doc ul li { position: relative; padding-left: 20px; }
.doc ul li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 5px; height: 5px; border-radius: 50%; background: var(--dim); }
.doc a.in { color: var(--text); border-bottom: 1px solid var(--line); }
.doc a.in:hover { border-color: var(--amber); }
.doc code { font-family: var(--mono); font-size: .9em; color: var(--text); }

@media (max-width: 640px) {
  .doc { padding-top: 36px; }
  .short dl { grid-template-columns: 1fr; }
  .short dt { padding: 14px 18px 0; border-top: 1px solid var(--line-2); }
  .short dd { padding: 4px 18px 14px; border-top: 0; }
  .short dl > :nth-child(1) { border-top: 0; }
  .doc .short-h { padding: 16px 18px 4px; }
  .foot-links { margin-left: 0; }
}
