/* ==========================================================================
   ADPOS — shared legal-page template (Privacy, Terms, Subscription, Cookies).
   Builds on site.css + features.css (shared .fx-hero sub-page hero).
   ========================================================================== */
html:has(.page-legal) { scroll-padding-top: calc(var(--header-h) + 20px); scroll-behavior: smooth; }

.lg-hero .lede { max-width: 40em; }
.lg-dates { margin-top: 22px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; font-size: .92rem; color: var(--muted); }
.lg-dates strong { color: var(--charcoal); font-weight: 700; }

.lg-body { padding-block: clamp(32px, 5vw, 64px) clamp(72px, 9vw, 120px); }
.lg-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }

/* Table of contents */
.lg-toc { position: sticky; top: calc(var(--header-h) + 20px); max-height: calc(100vh - var(--header-h) - 40px); overflow: auto; }
.lg-toc__title { font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.lg-toc ol { display: grid; gap: 2px; counter-reset: toc; border-left: 2px solid var(--line); }
.lg-toc a { display: block; padding: 7px 12px; margin-left: -2px; border-left: 2px solid transparent; text-decoration: none; font-size: .9rem; color: var(--muted); line-height: 1.35; }
.lg-toc a:hover { color: var(--ink); }
.lg-toc a.is-active { color: var(--orange-600); border-left-color: var(--orange); font-weight: 700; }
.lg-related { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.lg-related ul { display: grid; gap: 8px; }
.lg-related a { font-size: .9rem; font-weight: 600; color: var(--charcoal); }
.lg-related a[aria-current="page"] { color: var(--orange-600); text-decoration: none; }

/* Draft status banner */
.lg-status { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; margin-bottom: 36px; border-radius: 14px; background: #FFF6E5; border: 1px solid #F3D199; color: #6B4A12; font-size: .95rem; }
.lg-status strong { color: #4A320A; }
.lg-status__icon { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #F3B33F; color: #fff; font-weight: 800; }

/* Article typography */
.lg-doc { max-width: 72ch; color: var(--body); font-size: 1.02rem; line-height: 1.75; }
.lg-doc h2 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); letter-spacing: -0.02em; line-height: 1.25; margin: 48px 0 14px; padding-top: 8px; }
.lg-doc h2:first-of-type { margin-top: 0; }
.lg-doc h3 { font-size: 1.12rem; margin: 28px 0 10px; }
.lg-doc p { margin: 0 0 16px; }
.lg-doc ul, .lg-doc ol { margin: 0 0 18px; padding-left: 1.3em; list-style: disc; }
.lg-doc ol { list-style: decimal; }
.lg-doc li { margin-bottom: 8px; padding-left: 4px; }
.lg-doc li::marker { color: var(--orange); }
.lg-doc a { color: var(--orange-600); font-weight: 600; text-underline-offset: 2px; }
.lg-doc strong { color: var(--ink); }
.lg-doc .lg-lead { font-size: 1.08rem; color: var(--charcoal); }

/* "To be confirmed" placeholder and review notes */
.tbc { display: inline; padding: 1px 7px; border-radius: 6px; background: #FDEBC8; color: #7A4B00; font-weight: 600; font-size: .92em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.lg-note { margin: 0 0 18px; padding: 12px 16px; border-left: 3px solid #E0A83B; background: #FFF8EC; border-radius: 0 10px 10px 0; font-size: .92rem; color: #6B4A12; }
.lg-note strong { color: #4A320A; }

/* Tables */
.lg-table { margin: 6px 0 22px; border: 1px solid var(--line); border-radius: 14px; overflow-x: auto; }
.lg-table table { width: 100%; border-collapse: collapse; font-size: .92rem; line-height: 1.5; }
.lg-table th, .lg-table td { text-align: left; padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.lg-table thead th { border-top: 0; background: var(--stone); color: var(--ink); font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; }
.lg-table code { font-size: .88em; background: var(--stone); padding: 1px 6px; border-radius: 5px; color: var(--ink); }

/* Contact card + checklist */
.lg-contact { margin: 6px 0 18px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 14px; background: #fff; display: grid; gap: 6px; }
.lg-contact p { margin: 0; }
.lg-checklist { margin-top: 56px; padding: 24px 26px; border: 1.5px dashed #E0C79B; border-radius: 16px; background: #FFFCF6; }
.lg-checklist h2 { margin-top: 0 !important; font-size: 1.2rem; }
.lg-checklist ul { list-style: none; padding: 0; }
.lg-checklist li { position: relative; padding-left: 30px; }
.lg-checklist li::before { content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 16px; border: 2px solid #C9A25E; border-radius: 4px; }

@media (max-width: 960px) {
  .lg-layout { grid-template-columns: 1fr; }
  .lg-toc { position: static; max-height: none; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
  .lg-toc ol { border-left: 0; }
  .lg-toc a { padding: 6px 0; border-left: 0; margin-left: 0; }
}
@media print {
  .site-header, .lg-toc, .footer, .lg-status { display: none; }
  .lg-layout { display: block; }
}
