/* Annexus: shared styles for inner pages (legal, IoT demo, booking). Loaded after main.css.
   Page-specific styles live in their own files (legal.css, iot.css, book.css). */

/* ---------- Page hero: title band under the fixed header ---------- */
.page-hero { position: relative; isolation: isolate; overflow: hidden; padding: calc(var(--header-h) + clamp(48px, 7vw, 96px)) 0 clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.page-hero::before { /* soft spectrum glow, top right */
  content: ""; position: absolute; z-index: -1; right: -18vw; top: -40%; width: min(900px, 110vw); aspect-ratio: 1; border-radius: 50%;
  background: conic-gradient(from 120deg, var(--yellow), var(--orange), var(--pink), var(--blue), var(--green), var(--yellow));
  -webkit-mask-image: radial-gradient(closest-side, #000, rgba(0,0,0,.3) 45%, transparent 100%); mask-image: radial-gradient(closest-side, #000, rgba(0,0,0,.3) 45%, transparent 100%);
  opacity: .14; pointer-events: none;
}
.page-hero__rings { position: absolute; z-index: -1; right: -60px; top: 50%; width: min(620px, 80vw); translate: 0 -50%; opacity: .22; pointer-events: none; }
.page-hero h1 { margin-top: 20px; font-weight: 500; font-size: clamp(38px, 6vw, 80px); line-height: 1.02; letter-spacing: -.035em; text-wrap: balance; max-width: 18ch; }
.page-hero .lede { max-width: 60ch; }
.page-hero__meta { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 20px; font: 600 12px/1.4 var(--font-label); letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.page-hero__actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Breadcrumb ---------- */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--dim); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-strong); }
.crumbs a { color: var(--muted); text-decoration: none; } .crumbs a:hover { color: var(--text); }
.crumbs [aria-current="page"] { color: var(--text); }

/* ---------- Page body ---------- */
.page-body { padding: clamp(48px, 6vw, 88px) 0 clamp(72px, 8vw, 116px); }

/* ---------- Prose: long-form text (legal pages) ---------- */
.prose { max-width: 74ch; color: var(--muted); font-size: 17px; line-height: 1.7; }
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 2.4em; color: var(--text); font-weight: 500; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.2; letter-spacing: -.02em; scroll-margin-top: calc(var(--header-h) + 20px); }
.prose h3 { margin-top: 1.8em; color: var(--text); font-weight: 500; font-size: 19px; line-height: 1.3; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose a { color: var(--text); text-decoration-color: var(--pink); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--text); }
.prose strong { color: var(--text); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--dim); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose th { color: var(--text); font-weight: 500; }
.prose .table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.prose .table-wrap table { min-width: 520px; }
.prose .table-wrap tr:last-child td { border-bottom: 0; }
.prose .note { padding: 16px 18px; border: 1px solid var(--line); border-left: 2px solid var(--blue); border-radius: 12px; background: rgba(255,255,255,.02); }
.prose address { font-style: normal; }

/* Two columns on wide screens: sticky contents list + prose */
.doc-layout { display: grid; grid-template-columns: minmax(200px, 260px) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.doc-toc { position: sticky; top: calc(var(--header-h) + 24px); max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; font-size: 14px; }
.doc-toc p { font: 600 11px/1.4 var(--font-label); letter-spacing: .22em; text-transform: uppercase; color: var(--dim); margin-bottom: 12px; }
.doc-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.doc-toc a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 1px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.35; }
.doc-toc a:hover { color: var(--text); border-left-color: var(--line-strong); }
.doc-toc a[aria-current="true"] { color: var(--text); border-left-color: var(--pink); }
@media (max-width: 899px) {
  .doc-layout { grid-template-columns: 1fr; }
  .doc-toc { position: static; max-height: none; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; }
}
