/* UV AXIS - legal page layout (Terms, Privacy); .prose, .toc and .callout are also used by the article pages */
/* ---------- Legal pages (Terms, Privacy) ---------- */
.legal-hero { position: relative; overflow: hidden; padding-block: clamp(48px, 6vw, 88px) clamp(40px, 5vw, 64px); background: var(--mist); border-bottom: 1px solid var(--line); }
.legal-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 48px 48px; opacity: .6; -webkit-mask-image: radial-gradient(ellipse 60% 90% at 15% 20%, #000 10%, transparent 75%); mask-image: radial-gradient(ellipse 60% 90% at 15% 20%, #000 10%, transparent 75%); }
.legal-hero .wrap { position: relative; display: grid; gap: 18px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .88rem; color: var(--muted); }
.crumbs a:hover { color: var(--orange-ink); }
.crumbs span[aria-hidden] { color: #A9B0B9; }
.legal-hero h1 { font-size: clamp(2.3rem, 1.5rem + 3vw, 3.8rem); font-weight: 800; letter-spacing: -.03em; }
.legal-hero .lead { max-width: 60ch; }
.legal-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--muted); }
.legal { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; padding-block: clamp(48px, 5vw, 80px) var(--section); }
.toc { position: sticky; top: 104px; }
.toc details { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); }
.toc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.toc summary::-webkit-details-marker { display: none; }
.toc summary svg { width: 14px; height: 14px; transition: transform .2s; }
.toc details[open] summary svg { transform: rotate(180deg); }
.toc ol { counter-reset: toc; display: grid; gap: 2px; padding: 0 10px 12px; max-height: calc(100vh - 220px); overflow-y: auto; }
.toc li { counter-increment: toc; }
.toc ol a { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 6px; padding: 7px 8px; border-radius: 8px; font-size: .9rem; line-height: 1.35; color: #3A424C; transition: background .15s, color .15s; }
.toc ol a::before { content: counter(toc, decimal-leading-zero); font-family: var(--f-mono); font-size: .7rem; color: #A9B0B9; padding-top: 2px; }
.toc ol a:hover { background: var(--mist); color: var(--ink); }
.toc ol a.is-active { background: var(--orange-wash); color: var(--orange-ink); font-weight: 600; }
.toc ol a.is-active::before { color: var(--orange-ink); }
.toc__other { margin-top: 14px; padding: 16px 18px; border-radius: var(--r-lg); background: var(--graphite); color: #fff; display: grid; gap: 6px; }
.toc__other span { font-size: .85rem; color: var(--muted-dark); }
.toc__other a { color: var(--orange); font-weight: 600; display: inline-flex; gap: 8px; align-items: center; }
.toc__other svg { width: 16px; height: 16px; }
.prose { min-width: 0; max-width: 760px; counter-reset: sec; color: #2C333B; }
.prose section { padding-top: 40px; margin-top: 40px; border-top: 1px solid var(--line); scroll-margin-top: 100px; }
.prose section:first-of-type { margin-top: 36px; }
.prose h2 { counter-increment: sec; font-size: clamp(1.4rem, 1.2rem + .7vw, 1.8rem); font-weight: 800; margin-bottom: 18px; display: flex; gap: 14px; align-items: baseline; }
.prose h2::before { content: counter(sec, decimal-leading-zero); font-family: var(--f-mono); font-stretch: 100%; font-size: .8rem; font-weight: 500; color: var(--orange-ink); letter-spacing: .06em; flex: none; }
.prose h3 { font-size: 1.12rem; font-weight: 700; margin: 26px 0 10px; }
.prose p { margin: 0 0 16px; max-width: 68ch; }
.prose p:last-child { margin-bottom: 0; }
.prose a:not(.btn) { color: var(--orange-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(185,71,0,.35); }
.prose a:not(.btn):hover { text-decoration-color: currentColor; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 0; display: grid; gap: 10px; max-width: 68ch; }
.prose ul > li { position: relative; padding-left: 22px; }
.prose ul > li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 7px; height: 7px; border-radius: 2px; background: var(--orange); }
.prose ol { counter-reset: step; }
.prose ol > li { counter-increment: step; position: relative; padding-left: 38px; }
.prose ol > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--orange-wash); color: var(--orange-ink); font-weight: 700; font-size: .82rem; display: grid; place-items: center; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose .table-wrap { margin: 6px 0 20px; }
.prose .table { min-width: 460px; }
.prose .table tbody th { width: 34%; }
.callout { border: 1px solid #FFD9BC; background: #FFF8F2; border-radius: var(--r-lg); padding: 24px 26px; display: grid; gap: 12px; }
.callout > strong { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-ink); font-weight: 500; }
.callout ul { margin: 0; }
.callout p { font-size: .9rem; color: var(--muted); margin: 0; }
.details-list { margin: 4px 0 20px; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.details-list > div { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.details-list > div:last-child { border-bottom: 0; }
.details-list dt { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.details-list dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
/* Placeholder marker: information the business still has to supply */
.ph { background: #FFF1B8; color: #6B4E00; border-radius: 4px; padding: 1px 5px; font-weight: 500; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.legal-foot { margin-top: 48px; padding: 24px 26px; border-radius: var(--r-lg); background: var(--mist); display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; }
.legal-foot p { margin: 0; color: var(--muted); }
@media (max-width: 1024px) {
  .legal { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .toc { position: static; margin-bottom: 28px; }
  .toc ol { max-height: none; }
  .toc__other { display: none; }
}
@media (max-width: 760px) {
  .details-list > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .prose section { padding-top: 32px; margin-top: 32px; }
  .callout { padding: 20px; }
}
