/* ============================================================
   BARRINGTON INTERIORS — legal document style (terms + privacy)
   A calm, premium, scannable legal DOCUMENT: one reading column with a
   sticky jump-to contents, numbered sections, tight rhythm. Dark + red
   identity, but quiet and readable — not a marketing page.
   ============================================================ */
/* hero intro links read as links on legal pages */
.legal-page .page-hero a { color: var(--red-bright); text-decoration: underline; text-underline-offset: 2px; }
.legal-page .page-hero a:hover { color: var(--red); }

.legal-doc { padding-block: clamp(36px, 5vw, 64px); }
.legal-wrap { max-width: 1080px; margin-inline: auto; padding-inline: var(--gut); display: grid; grid-template-columns: 1fr; gap: clamp(28px, 4vw, 56px); }
@media (min-width: 980px) { .legal-wrap { grid-template-columns: 232px minmax(0, 1fr); } }

/* ---- sticky contents ---- */
.legal-toc .toc-label { display: block; font-size: .66rem; letter-spacing: .24em; text-transform: uppercase; color: var(--red); font-weight: 700; margin-bottom: 12px; }
.legal-toc ol { list-style: none; counter-reset: toc; display: flex; flex-direction: column; gap: 1px; }
.legal-toc li { counter-increment: toc; }
.legal-toc a { display: block; padding: 8px 12px; border-left: 2px solid var(--line); color: var(--muted); font-size: .85rem; line-height: 1.35; transition: color .2s, border-color .2s, background .2s; }
.legal-toc a::before { content: counter(toc) ". "; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.legal-toc a:hover { color: var(--cream); border-color: var(--red-deep); }
.legal-toc a.active { color: var(--cream); border-color: var(--red); background: rgba(224,27,34,.07); }
.legal-toc a.active::before { color: var(--red); }
.legal-toc summary { cursor: pointer; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: var(--cream); padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; list-style: none; }
.legal-toc summary::-webkit-details-marker { display: none; }
.legal-toc details[open] summary { border-radius: 10px 10px 0 0; border-bottom-color: transparent; }
.legal-toc details > ol { border: 1px solid var(--line); border-top: 0; border-radius: 0 0 10px 10px; padding: 6px; }
@media (min-width: 980px) {
  .legal-toc { position: sticky; top: 100px; align-self: start; max-height: calc(100vh - 124px); overflow: auto; }
  .legal-toc summary { display: none; }
  .legal-toc details > ol { border: 0; padding: 0; }
}

/* ---- document body ---- */
.legal-body { min-width: 0; max-width: 72ch; counter-reset: sec; }
.legal-body .updated { font-size: .8rem; color: var(--muted-2); margin: 0 0 clamp(24px, 3.5vw, 40px); padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.legal-body .updated strong { color: var(--muted); font-weight: 600; }

.legal-sec { counter-increment: sec; padding: clamp(22px, 3vw, 30px) 0; border-bottom: 1px solid var(--line); scroll-margin-top: 96px; }
.legal-sec:last-child { border-bottom: 0; }
.legal-sec > h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.22rem, 1.9vw, 1.5rem); color: var(--cream); line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .85rem; }
.legal-sec > h2::before { content: counter(sec) "."; color: var(--red); font-variant-numeric: tabular-nums; margin-right: .5em; }
.legal-sec h3 { font-family: var(--serif); font-weight: 600; font-size: 1.02rem; color: var(--cream); margin: 1.5rem 0 .4rem; }
.legal-sec p, .legal-sec li { color: var(--muted); line-height: 1.75; }
.legal-sec p { margin: 0 0 1rem; }
.legal-sec p:last-child, .legal-sec li:last-child { margin-bottom: 0; }
.legal-sec ul { padding-left: 1.15rem; margin: .4rem 0 1.05rem; }
.legal-sec li { margin-bottom: .55rem; }
.legal-sec strong { color: var(--cream); }
.legal-sec a { color: var(--red-bright); text-decoration: underline; text-underline-offset: 2px; }
.legal-sec a:hover { color: var(--red); }

/* compact contact card row (instead of full marketing service-grid) */
.legal-contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 1.1rem 0 .2rem; }
.legal-contact div { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: var(--ink-2); }
.legal-contact h4 { font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); font-weight: 700; margin: 0 0 5px; }
.legal-contact a, .legal-contact p { color: var(--cream); font-size: .9rem; margin: 0; line-height: 1.4; word-break: break-word; }
.legal-contact a { text-decoration: none; }
.legal-contact a:hover { color: var(--red-bright); }

/* tables (processors / retention) */
.legal-sec table { width: 100%; border-collapse: collapse; margin: .7rem 0 .2rem; font-size: .89rem; }
.legal-sec th, .legal-sec td { text-align: left; padding: 10px 12px; border: 1px solid var(--line); color: var(--muted); vertical-align: top; line-height: 1.5; }
.legal-sec th { color: var(--cream); font-weight: 600; background: var(--ink-2); }
.legal-sec td strong { color: var(--cream); }

/* a quiet "key point" callout (replaces the big marketing quote band) */
.legal-key { margin: 0 0 clamp(24px,3.5vw,40px); padding: 16px 18px; border: 1px solid var(--line); border-left: 3px solid var(--red); border-radius: 0 10px 10px 0; background: var(--ink-2); color: var(--cream); line-height: 1.6; font-size: .96rem; }
