/* Document and app pages (privacy, terms, accounts).
   Reuses the tokens in styles.css: same palette, same fonts, same light/dark behaviour.
   Wider measure than the link-in-bio page, and left-aligned, because these are read not scanned. */

.doc {
  max-width: 72ch;
  margin: 0 auto;
  padding: 40px 20px 64px;
  text-align: left;
}

.doc-head { border-bottom: 1px solid var(--border); padding-bottom: 20px; margin-bottom: 32px; }

.doc .eyebrow {
  font-family: var(--ui);
  font-size: 12px;
  line-height: 18px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 0 0 10px;
}

.doc h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 34px;
  line-height: 40px;
  margin: 0;
}

.doc .dates { font-size: 15px; line-height: 24px; color: var(--mute); margin: 10px 0 0; }

.doc h2 {
  font-family: var(--accent);
  font-weight: 500;
  font-size: 26px;
  line-height: 32px;
  margin: 40px 0 10px;
}

.doc h3 {
  font-family: var(--ui);
  font-weight: 600;
  font-size: 15px;
  line-height: 24px;
  letter-spacing: .02em;
  margin: 26px 0 6px;
}

.doc p, .doc li { margin: 0 0 14px; }
.doc ul, .doc ol { padding-left: 22px; margin: 0 0 16px; }
.doc li { margin-bottom: 8px; }
.doc a { text-decoration: underline; text-underline-offset: 3px; }
.doc strong { font-weight: 500; }

.doc code {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: .88em;
  background: var(--sand);
  border-radius: 4px;
  padding: 2px 6px;
}

.doc .callout {
  background: var(--sand);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 20px;
  margin: 22px 0;
}
.doc .callout p:last-child { margin-bottom: 0; }

.doc .tw { overflow-x: auto; margin: 16px 0; }
.doc table { border-collapse: collapse; width: 100%; font-size: 16px; line-height: 25px; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.doc th {
  font-family: var(--ui);
  font-size: 11.5px;
  line-height: 18px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 600;
}

.doc-foot {
  border-top: 1px solid var(--border);
  margin-top: 48px;
  padding-top: 20px;
  font-size: 15px;
  line-height: 24px;
  color: var(--mute);
}
.doc-foot a { color: var(--ink); }

@media (min-width: 641px) {
  .doc { padding: 64px 24px 72px; }
  .doc h1 { font-size: 42px; line-height: 50px; }
}

@media print {
  .doc { max-width: none; padding: 0; }
  .doc a { text-decoration: underline; }
  .doc-foot { border-top: 1px solid #000; }
}
