/* Data Policy page — document-specific layout.
   Tokens, base type, nav and footer come from styles.css; this file adds the
   legal-document styles (hero, table-of-contents, clauses, tables, callouts). */

/* Doc hero */
.doc-hero { padding-block: clamp(40px, 6vw, 88px) clamp(36px, 4.6vw, 64px); border-bottom: 1px solid var(--rule); }
.doc-hero__eyebrow { display: flex; align-items: center; gap: 14px; color: var(--muted); margin-bottom: 26px; }
.doc-hero__eyebrow::before { content: ""; width: 32px; height: 1px; background: currentColor; }
.doc-hero__title { font-size: clamp(44px, 6.4vw, 92px); margin: 0; }
.doc-hero__title em { font-style: italic; color: var(--muted); }
.doc-hero__lede { margin-top: 28px; max-width: 60ch; font-size: clamp(16px, 1.3vw, 19px); color: rgba(12,12,12,0.78); line-height: 1.55; text-wrap: pretty; }
.doc-hero__meta { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--rule-soft); display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 28px; max-width: 760px; }
.doc-hero__meta div { font-family: "Geist Mono", monospace; }
.doc-hero__meta strong { display: block; font-weight: 500; text-transform: uppercase; letter-spacing: 0.14em; font-size: 10px; margin-bottom: 6px; color: var(--muted); }
.doc-hero__meta span { font-family: "Instrument Serif", serif; font-style: italic; font-size: 18px; }
@media (max-width: 720px) { .doc-hero__meta { grid-template-columns: repeat(2, 1fr); gap: 20px; } }

/* Legal layout */
.legal { padding-block: clamp(48px, 6vw, 88px); }
.legal__grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
@media (max-width: 920px) { .legal__grid { grid-template-columns: 1fr; gap: 32px; } }
.toc { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 2px; }
@media (max-width: 920px) { .toc { position: static; padding-bottom: 16px; border-bottom: 1px solid var(--rule-soft); } }
.toc__label { font-family: "Geist Mono", monospace; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.toc a { text-decoration: none; font-family: "Geist Mono", monospace; font-size: 11px; letter-spacing: 0.04em; color: var(--muted); padding: 6px 0; display: flex; gap: 10px; border-top: 1px solid var(--rule-soft); }
.toc a:first-of-type { border-top: none; }
.toc a:hover { color: var(--ink); }
.toc a b { color: var(--ink); font-weight: 500; }

.article { max-width: 720px; }
.clause { padding-block: clamp(28px, 3.4vw, 44px); border-top: 1px solid var(--rule); }
.clause:first-child { border-top: none; padding-top: 0; }
.clause__num { font-family: "Geist Mono", monospace; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.clause__title { font-family: "Instrument Serif", serif; font-size: clamp(26px, 3vw, 38px); letter-spacing: -0.01em; line-height: 1.02; margin: 0 0 18px; }
.clause p { font-size: 16px; line-height: 1.62; color: rgba(12,12,12,0.82); margin: 0 0 16px; max-width: 64ch; text-wrap: pretty; }
.clause p:last-child { margin-bottom: 0; }
.clause strong { font-weight: 600; }
.clause a.inline { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--rule); }
.clause a.inline:hover { text-decoration-color: var(--ink); }

.lst { list-style: none; margin: 4px 0 18px; padding: 0; display: flex; flex-direction: column; }
.lst li { position: relative; padding: 12px 0 12px 22px; border-top: 1px dashed var(--rule); font-size: 15px; line-height: 1.55; color: rgba(12,12,12,0.82); max-width: 64ch; text-wrap: pretty; }
.lst li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 7px; height: 7px; background: var(--ink); }
.lst li b { font-weight: 600; }

/* Definition table */
.deftable { border: 1px solid var(--rule); margin: 6px 0 18px; }
.deftable__row { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
.deftable__row + .deftable__row { border-top: 1px solid var(--rule-soft); }
.deftable__row dt { padding: 16px 18px; font-family: "Instrument Serif", serif; font-size: 18px; letter-spacing: -0.01em; line-height: 1.2; border-right: 1px solid var(--rule-soft); background: var(--cream); }
.deftable__row dd { padding: 16px 18px; margin: 0; font-size: 14.5px; line-height: 1.55; color: rgba(12,12,12,0.8); text-wrap: pretty; }
@media (max-width: 620px) { .deftable__row { grid-template-columns: 1fr; } .deftable__row dt { border-right: none; border-bottom: 1px solid var(--rule-soft); } }

/* Certificate callout */
.certs { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin: 6px 0 18px; }
@media (max-width: 620px) { .certs { grid-template-columns: 1fr; } }
.cert { background: var(--cream); padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.cert__tag { font-family: "Geist Mono", monospace; font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); align-self: flex-start; padding: 4px 9px; border: 1px solid var(--ink); background: color-mix(in srgb, var(--ok) 16%, var(--cream)); }
.cert__name { font-family: "Instrument Serif", serif; font-size: 23px; letter-spacing: -0.01em; line-height: 1.1; margin-top: 4px; }
.cert__meta { font-family: "Geist Mono", monospace; font-size: 11px; color: var(--muted); letter-spacing: 0.04em; line-height: 1.6; }
.cert__meta b { color: var(--ink); font-weight: 500; }

.note { font-family: "Geist Mono", monospace; font-size: 11px; line-height: 1.6; letter-spacing: 0.02em; color: var(--muted); border-left: 2px solid var(--rule); padding: 4px 0 4px 16px; margin: 0 0 18px; max-width: 60ch; }
.note b { color: var(--ink); }

/* Footer link group (shared footer styles come from styles.css) */
.footer__links { display: flex; gap: 24px; }

/* Document-page display line-height matches the design's tighter setting */
.doc-hero .display { line-height: 0.98; }
