/* Legal pages: privacy-policy, terms-gtc-v3-1, imprint.
   Laid out after openai.com's policy pages on the shared px- system
   (css/px.css): a centred title and meta, then one px-prose reading column.
   Brand values come from the variables in site.css. */

/* ---------- Header ---------- */
.lg-hero h1 { font-size: clamp(30px, 3.95vw, 46px); line-height: 1.06; letter-spacing: -0.04em; max-width: 20ch; overflow-wrap: anywhere; }
.lg-tagline { font-size: 13px; color: var(--nxt-gray); margin: 0 0 12px !important; }
.lg-hero .lg-sub { max-width: 46ch; margin: 0 auto !important; }
.lg-hero p.lg-sub.px-meta { margin: 0 !important; }
.lg-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 28px 0 0; }
.lg-badges li { padding: 8px 16px; border-radius: 999px; background: var(--nxt-ink-50); font-size: 14px; color: var(--nxt-midnight); }
.lg-badges strong { font-weight: 500; }
.lg-meta { margin: 24px 0 0 !important; line-height: 1.75; }
.lg-meta a { color: var(--nxt-gray); }
.lg-meta a:hover { color: var(--nxt-cobalt); }

/* ---------- Reading column ---------- */
.lg-body { padding: 72px 0 120px; }
.legal { overflow-wrap: anywhere; }
.legal h2 {
  margin: 64px 0 16px; padding-top: 28px; border-top: 1px solid var(--border-subtle);
  scroll-margin-top: calc(var(--nav-height) + 16px);
}
.legal > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal h3 { scroll-margin-top: calc(var(--nav-height) + 16px); }
.legal ol { list-style: decimal; padding-left: 1.3em; margin: 0 0 1.2em; }
.legal li::marker { color: var(--nxt-cobalt); }
.legal strong { color: var(--nxt-midnight); font-weight: 500; }
.legal-address { color: var(--nxt-midnight); }

/* Definitions */
.defs { margin: 8px 0 24px; border-top: 1px solid var(--border-subtle); }
.defs dt { font-weight: 500; color: var(--nxt-midnight); padding-top: 16px; }
.defs dd { margin: 2px 0 0; padding-bottom: 16px; border-bottom: 1px solid var(--border-subtle); }

/* Tables: scroll sideways inside their own box on small screens. */
.table-wrap { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 16px 0 24px; border-top: 1px solid var(--border-default); }
.legal table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 14px; line-height: 1.55; overflow-wrap: normal; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--border-subtle); }
.legal th { color: var(--nxt-midnight); font-weight: 500; }
.legal td strong { font-weight: 400; color: inherit; }
.legal td:first-child strong, .legal th strong { font-weight: 500; color: var(--nxt-midnight); }

/* Contents */
.legal-toc { max-width: 720px; margin: 0 auto 72px; }
.legal-toc .legal-toc-title {
  font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--nxt-gray);
  margin: 0 0 16px; padding-bottom: 16px; border-bottom: 1px solid var(--border-subtle);
}
.legal-toc ol { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 40px; font-size: 15px; }
.legal-toc li { break-inside: avoid; margin-bottom: 8px; }
.legal-toc a { color: var(--nxt-midnight); text-decoration: none; }
.legal-toc a:hover { color: var(--nxt-cobalt); text-decoration: underline; }

.legal-foot { margin-top: 72px; padding-top: 24px; border-top: 1px solid var(--border-default); font-size: 13px; line-height: 1.65; color: var(--nxt-gray); }
.legal-foot strong { color: var(--nxt-midnight); }
.legal-top { margin-top: 24px; font-size: 14px; }
.legal-top a { color: var(--nxt-gray); font-weight: 500; text-decoration: none; }
.legal-top a::before { content: "\2191"; margin-right: 6px; }
.legal-top a:hover { color: var(--nxt-cobalt); }

@media (max-width: 720px) {
  .lg-body { padding: 48px 0 88px; }
  .legal h2 { margin-top: 48px; }
  .legal-toc { margin-bottom: 56px; }
  .legal-toc ol { columns: 1; }
}
