/* Help, FAQ, Terms and Privacy (2026-11-16 redesign). Loaded after site.css, which holds the tokens, header and buttons. */
.doc { max-width: 760px; margin: 0 auto; padding: 0 24px; position: relative; isolation: isolate; }
@media (max-width: 600px) { .doc { padding: 0 16px; } }
.doc::before { content: ""; position: absolute; z-index: -1; left: 50%; top: -10px; width: min(900px, 100%); height: 420px;
               transform: translateX(-50%); pointer-events: none; background: radial-gradient(closest-side, var(--brand-glow), transparent 72%); opacity: .6; }
.doc main { padding-top: 48px; }
.doc h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(40px, 6.4vw, 60px); line-height: 1.04; letter-spacing: -.025em; margin: 0 0 12px; text-wrap: balance; }
.doc .updated { color: var(--muted); margin: 0 0 32px; font-size: 16px; }
.doc main > p, .doc main li { color: color-mix(in srgb, var(--text) 84%, var(--muted)); }
.doc h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(25px, 3.4vw, 30px); line-height: 1.15; letter-spacing: -.018em; margin: 52px 0 12px;
          scroll-margin-top: 84px; }
.doc h3 { font: 650 18px/1.3 var(--display); letter-spacing: -.01em; margin: 28px 0 6px; }
.doc main ul { padding-left: 22px; }
.doc main li { margin: 6px 0; }
.doc main li::marker { color: var(--brand); }
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
           padding: 22px 26px; position: relative; overflow: hidden; }
.summary::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(#5B4BF0, #8F83FF); }
.summary p { margin: 0; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); margin: 10px 0; padding: 0 22px; }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
          padding: 18px 0; font: 600 17px/1.35 var(--display); letter-spacing: -.01em; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; width: 24px; height: 24px; flex-shrink: 0; border-radius: 50%; transition: transform .2s; background: var(--surface-2)
                 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 8v8M8 12h8' stroke='%238A8A96' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / 24px no-repeat; }
details[open] summary::after { transform: rotate(45deg); }
details > p, details > ul { margin: -2px 0 18px; color: var(--muted); }
/* Footer on these pages sits inside .doc */
.doc > footer { margin: 80px 0 40px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px;
                display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; }
.doc > footer a { color: var(--muted); }
.doc > footer a:hover { color: var(--text); }
