/* Legal pages (privacy policies). Loaded after site.css and reuses its tokens. */
.doc { max-width: 880px; padding-top: 56px; padding-bottom: 24px; }
.doc .kicker { display: block; }
.doc h1 { margin: 14px 0 10px; font: 800 clamp(36px, 5.4vw, 58px)/1.02 var(--font-display); letter-spacing: -.035em; }
.doc .updated { margin: 0; font: 500 13.5px/1.5 var(--font-mono); color: var(--faint); }
.doc .intro { margin: 22px 0 0; font-size: 18px; line-height: 1.6; color: var(--text); max-width: 68ch; }

.glance { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin: 34px 0 0; padding: 0; list-style: none; }
.glance li { padding: 18px 18px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); }
.glance b { display: flex; align-items: center; gap: 10px; font: 700 16px/1.3 var(--font-display); color: var(--text); }
.glance b::before { content: ""; flex: none; width: 10px; height: 11px; background: var(--grad); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.glance span { display: block; margin-top: 6px; font-size: 14.5px; line-height: 1.5; color: var(--muted); }

.toc { margin: 34px 0 0; padding: 20px 24px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); }
.toc p { margin: 0 0 10px; font: 600 12px/1 var(--font-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--faint); }
.toc ol { margin: 0; padding-left: 22px; columns: 2; column-gap: 32px; }
.toc li { break-inside: avoid; padding: 3px 0; font-size: 15px; color: var(--faint); }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--text); text-decoration: underline; }
@media (max-width: 640px) { .toc ol { columns: 1; } }

.prose { margin-top: 8px; }
.prose h2 { margin: 56px 0 14px; font: 700 clamp(23px, 2.6vw, 28px)/1.2 var(--font-display); letter-spacing: -.02em; scroll-margin-top: 90px; }
.prose h2 .no { color: var(--faint); font-weight: 600; margin-right: 6px; }
.prose h3 { margin: 26px 0 8px; font: 700 17.5px/1.35 var(--font-display); }
.prose p, .prose li { color: var(--text); opacity: .92; }
.prose p { margin: 10px 0; }
.prose ul { margin: 10px 0; padding-left: 22px; }
.prose li { margin: 7px 0; }
.prose li::marker { color: var(--faint); }
.prose a { color: inherit; text-decoration-color: color-mix(in srgb, var(--gold) 70%, transparent); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: currentColor; }
.prose strong { font-weight: 600; color: var(--text); }

.table-wrap { margin: 16px 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.prose table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; }
.prose th, .prose td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose th { font: 600 12px/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: .04em; color: var(--faint); background: var(--card-2); }
.prose tr:last-child td { border-bottom: 0; }
.prose td:first-child { font-weight: 600; color: var(--text); }

/* Small screens: each table row becomes a card, labels come from the header (set by site.js). */
@media (max-width: 640px) {
  .table-wrap { border: 0; border-radius: 0; overflow: visible; }
  .prose table { min-width: 0; }
  .prose table, .prose tbody, .prose tr, .prose td { display: block; width: 100%; }
  .prose tr:first-child { display: none; }
  .prose tr { margin: 0 0 10px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
  .prose td { padding: 5px 0; border: 0; }
  .prose td:first-child { font-size: 16px; }
  .prose td[data-label]:not(:first-child)::before {
    content: attr(data-label); display: block; margin-bottom: 2px;
    font: 600 11px/1.4 var(--font-mono); text-transform: uppercase; letter-spacing: .04em; color: var(--faint);
  }
}

.callout { margin: 16px 0; padding: 16px 20px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); }
.callout p { margin: 0; }

.contact-card {
  margin: 56px 0 0; padding: 26px 28px; border-radius: 20px;
  background: linear-gradient(var(--panel), var(--panel)) padding-box, var(--grad) border-box; border: 1px solid transparent;
}
.contact-card h2 { margin-top: 0; }
.contact-card p { margin: 6px 0; }

@media print {
  .nav, .backdrop, footer, .toc { display: none !important; }
  body { background: #fff; color: #000; }
}

/* Delete-account page: the two ways to delete, side by side on wide screens. */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; margin: 34px 0 0; }
.step { margin: 0; padding: 22px 24px; }
.step h2 { margin: 0 0 10px; font: 700 21px/1.25 var(--font-display); letter-spacing: -.01em; }
.step h2 .no { color: var(--faint); font-weight: 600; margin-right: 6px; }
.step ol { margin: 0 0 10px; padding-left: 22px; }
.step li { margin: 6px 0; }
.step p { margin: 8px 0 0; color: var(--muted); }
.step a { color: inherit; text-underline-offset: 3px; }
.step .cta { margin-top: 16px; }
.step .cta .btn { color: var(--bg); text-decoration: none; }
@media (max-width: 400px) { .steps { grid-template-columns: 1fr; } .step { padding: 18px; } .step a { overflow-wrap: anywhere; } }
