/* ---------- Document pages: changelog, privacy, terms ---------- */
body { background: var(--bg); }

.doc-head { position: relative; padding: 150px 0 44px; text-align: center; overflow: hidden; }
.doc-head::before { content: ""; position: absolute; inset: -40% 0 auto 0; height: 520px; pointer-events: none; background: radial-gradient(ellipse 50% 60% at 50% 30%, rgba(46, 119, 208, 0.2), rgba(46, 119, 208, 0) 70%); }
.doc-head .wrap { position: relative; }
.doc-head h1 { font: 700 clamp(46px, 6.4vw, 72px)/1 var(--font-head); color: #fff; margin-bottom: 16px; }
.doc-head p { max-width: 560px; margin: 0 auto; font-size: 19px; color: var(--muted); }

.doc-main { padding: 20px 0 110px; }
.doc-wrap { max-width: 740px; }

/* ----- long-form text (privacy, terms) ----- */
.doc-content { font-size: 17px; line-height: 1.75; color: rgba(236, 237, 237, 0.86); }
.doc-content h2 { margin: 52px 0 16px; padding-top: 34px; border-top: 1px solid var(--border-soft); font: 700 32px/1.1 var(--font-head); color: #fff; }
.doc-content h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.doc-content h3 { margin: 30px 0 10px; font: 700 23px/1.15 var(--font-head); color: #fff; }
.doc-content p { margin-bottom: 16px; }
.doc-content strong { font-weight: 600; color: #fff; }
.doc-content a { color: var(--accent-light); text-decoration: underline; text-decoration-color: rgba(111, 176, 245, 0.4); text-underline-offset: 3px; transition: text-decoration-color 160ms ease, color 160ms ease; }
.doc-content a:hover { color: #fff; text-decoration-color: currentColor; }
.doc-content ul { margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.doc-content li { position: relative; padding-left: 26px; }
.doc-content li::before { content: ""; position: absolute; left: 6px; top: 0.78em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-light); box-shadow: 0 0 10px rgba(46, 119, 208, 0.7); }
.doc-meta { margin-bottom: 24px; font-size: 14px; color: var(--faint); }
.doc-content table { width: 100%; margin: 6px 0 22px; border-collapse: separate; border-spacing: 0; font-size: 16px; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--surface-low); }
.doc-content th, .doc-content td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--border-soft); }
.doc-content tr:last-child td { border-bottom: 0; }
.doc-content th { font-size: 14px; font-weight: 600; color: var(--muted); background: rgba(255, 255, 255, 0.03); }
.doc-content :target { scroll-margin-top: 100px; }
.doc-content p:target { padding: 12px 16px; margin-left: -16px; margin-right: -16px; border-radius: 12px; background: rgba(46, 119, 208, 0.1); box-shadow: inset 0 0 0 1px rgba(111, 176, 245, 0.35); }

/* ----- changelog: a timeline of version cards ----- */
.changelog { position: relative; padding-left: 38px; }
.changelog::before { content: ""; position: absolute; left: 7px; top: 14px; bottom: 30px; width: 2px; border-radius: 2px; background: linear-gradient(to bottom, var(--accent-light), rgba(111, 176, 245, 0.12)); }
.changelog-entry { position: relative; margin-bottom: 28px; border-radius: 20px; padding: 26px 28px 20px; background: linear-gradient(165deg, #1b2434, #131a27); border: 1px solid var(--border-soft); scroll-margin-top: 100px; transition: border-color 200ms ease, box-shadow 300ms ease; }
.changelog-entry::before { /* the dot on the rail */
  content: ""; position: absolute; left: -38px; top: 33px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent-light); box-shadow: 0 0 0 4px var(--bg); }
.changelog-entry:first-child { border-color: rgba(111, 176, 245, 0.4); box-shadow: 0 30px 60px -36px var(--accent-glow); }
.changelog-entry:first-child::before { background: var(--accent-light); box-shadow: 0 0 0 4px var(--bg), 0 0 16px rgba(111, 176, 245, 0.8); }
.changelog-entry:target { border-color: var(--accent-light); box-shadow: 0 0 0 1px var(--accent-light), 0 30px 60px -30px var(--accent-glow); }
.entry-header { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.entry-header h2 { font: 700 40px/1 var(--font-head); color: #fff; margin: 0; }
.entry-header time { padding: 5px 13px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--border-soft); font-size: 14px; font-weight: 500; color: var(--muted); }
.entry-body h3 { display: flex; align-items: center; gap: 10px; margin: 18px 0 10px; font: 700 21px/1.1 var(--font-head); color: #fff; }
.entry-body h3::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 3px; background: var(--muted); }
.entry-body h3.k-new::before { background: var(--success); box-shadow: 0 0 12px rgba(52, 211, 153, 0.6); }
.entry-body h3.k-fix::before { background: var(--accent-light); box-shadow: 0 0 12px rgba(111, 176, 245, 0.6); }
.entry-body ul { margin: 0 0 8px; padding: 0; display: grid; gap: 10px; }
.entry-body li { position: relative; padding-left: 22px; font-size: 16.5px; line-height: 1.6; color: rgba(236, 237, 237, 0.86); }
.entry-body li::before { content: ""; position: absolute; left: 4px; top: 0.72em; width: 6px; height: 6px; border-radius: 50%; background: rgba(236, 237, 237, 0.45); }
.entry-body a { color: var(--accent-light); text-decoration: underline; text-underline-offset: 3px; }
.entry-body strong { color: #fff; font-weight: 600; }
.entry-body p { margin: 0 0 12px; font-size: 16.5px; line-height: 1.65; color: rgba(236, 237, 237, 0.86); }

@media (max-width: 640px) {
  .doc-head { padding-top: 120px; }
  .doc-content { font-size: 16.5px; }
  .doc-content h2 { font-size: 28px; }
  .changelog { padding-left: 28px; }
  .changelog::before { left: 5px; }
  .changelog-entry { padding: 22px 20px 16px; }
  .changelog-entry::before { left: -28px; top: 29px; width: 14px; height: 14px; }
  .entry-header h2 { font-size: 34px; }
}
