/* opndoor — shared styles for legal pages (privacy, terms, cookies) */

/* —— Pre-heading mark, shared with insights/about —— */
.pre-h { display:flex; align-items:center; gap:10px; }
.pre-h__dot { width:8px; height:8px; border-radius:50%; background: var(--heliotrope); }
.pre-h__text { font-family: var(--body); font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); }

/* ——————————————————————————————————————————————————
   HERO — document header band, on the warm soft canvas
   —————————————————————————————————————————————————— */
.lg-hero {
  padding: clamp(72px, 9vw, 120px) 0 clamp(40px, 5vw, 64px);
  background:
    radial-gradient(900px 520px at -10% -10%, rgba(211,100,251,0.14), transparent 60%),
    radial-gradient(700px 480px at 110% 110%, rgba(140,180,220,0.10), transparent 60%),
    var(--canvas);
  border-bottom: 1px solid var(--hairline);
}
.lg-hero__grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: end;
}
@media (max-width: 960px) { .lg-hero__grid { grid-template-columns: 1fr; } }

.lg-hero h1 {
  font-family: var(--display);
  font-size: clamp(40px, 5.4vw, 76px);
  line-height: 1.0;
  letter-spacing: -0.035em;
  font-weight: 800;
  max-width: 16ch;
  margin: 16px 0 22px;
}
.lg-hero h1 em { font-style: normal; color: var(--heliotrope-deep); }
.lg-hero__lede { font-size: 18px; max-width: 56ch; color: var(--ink-soft); line-height: 1.55; }

/* Sidebar metadata block — mirrors insights/about hero meta */
.lg-hero__meta {
  font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 18px;
  border-top: 1px solid var(--hairline);
  padding-top: 18px;
}
.lg-hero__meta dt { color: var(--ink-mute); }
.lg-hero__meta dd { margin: 0; color: var(--ink); font-weight: 700; }

/* —— Sub-nav: jump between Privacy / Terms / Cookies —— */
.lg-subnav {
  border-bottom: 1px solid var(--hairline);
  background: var(--canvas);
  position: sticky;
  top: 64px;
  z-index: 5;
}
.lg-subnav__row {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  padding: 14px 0;
}
.lg-subnav__lbl {
  font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-right: 16px;
}
.lg-subnav a {
  font-family: var(--body);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  color: var(--ink-soft);
  background: #fff;
  transition: all 0.15s;
}
.lg-subnav a:hover { color: var(--ink); border-color: var(--ink); }
.lg-subnav a[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ——————————————————————————————————————————————————
   MAIN — TOC sidebar + numbered clauses
   —————————————————————————————————————————————————— */
.lg-main {
  padding: clamp(48px, 6vw, 88px) 0 clamp(64px, 8vw, 112px);
}
.lg-main__grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: clamp(40px, 5vw, 88px);
}
@media (max-width: 1080px) { .lg-main__grid { grid-template-columns: 1fr; } }

/* —— Table of contents —— */
.lg-toc {
  position: sticky;
  top: 140px;
  align-self: start;
  border-top: 1px solid var(--ink);
  padding-top: 18px;
}
@media (max-width: 1080px) { .lg-toc { position: static; } }
.lg-toc__lbl {
  font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: block;
  margin-bottom: 12px;
}
.lg-toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc;
  display: flex;
  flex-direction: column;
}
.lg-toc li { counter-increment: toc; border-bottom: 1px dashed rgba(39,29,95,0.14); }
.lg-toc li:last-child { border-bottom: 0; }
.lg-toc a {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  padding: 11px 0;
  font-size: 13.5px;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.35;
  align-items: baseline;
  transition: color 0.15s;
}
.lg-toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--ink-faint, #8676ab);
  font-weight: 400;
}
.lg-toc a:hover { color: var(--heliotrope-deep); }

/* —— Body — the document itself —— */
.lg-body { max-width: 72ch; }
.lg-body > section { padding: 28px 0 8px; border-top: 1px solid var(--hairline); }
.lg-body > section:first-child { border-top: 0; padding-top: 0; }

.lg-body h2 {
  font-family: var(--display);
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 800;
  letter-spacing: -0.022em;
  line-height: 1.1;
  margin: 0 0 8px;
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 14px;
  align-items: baseline;
}
.lg-body h2 .lg-num {
  font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--heliotrope-deep);
  font-weight: 600;
  padding-top: 2px;
}
.lg-body h2 .lg-anchor {
  font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 400;
  text-decoration: none;
  margin-left: 8px;
  opacity: 0;
  transition: opacity 0.15s;
}
.lg-body h2:hover .lg-anchor { opacity: 1; }

.lg-body h3 {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin: 22px 0 6px;
  color: var(--ink);
}

.lg-body p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  margin: 10px 0;
}
.lg-body p.lg-lede {
  font-size: 17px;
  color: var(--ink-soft);
  margin-bottom: 18px;
  max-width: 60ch;
}

.lg-body ul, .lg-body ol {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink);
  padding-left: 22px;
  margin: 8px 0 14px;
}
.lg-body ul li, .lg-body ol li { margin: 4px 0; }
.lg-body ul li::marker { color: var(--heliotrope-deep); }
.lg-body ol li::marker { color: var(--ink-mute); font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, monospace); font-size: 13px; }

.lg-body a:not(.lg-anchor) {
  color: var(--heliotrope-deep);
  border-bottom: 1px solid rgba(181,77,224,0.35);
  transition: border-color 0.15s;
}
.lg-body a:not(.lg-anchor):hover { border-bottom-color: var(--heliotrope-deep); }

.lg-body strong, .lg-body b { font-weight: 700; color: var(--ink); }

/* Defined-term style — small caps-ish, bold */
.lg-term {
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0.005em;
}

/* Inline scope/note callout */
.lg-note {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 14px;
  padding: 14px 18px;
  background: var(--canvas-2);
  border-left: 3px solid var(--heliotrope);
  border-radius: 0 4px 4px 0;
  margin: 18px 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.lg-note__tag {
  font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 700;
  padding-top: 2px;
}

/* —— Tables (UK GDPR purposes; cookies inventory) —— */
.lg-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 22px;
  font-size: 14px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--hairline);
}
.lg-table thead th {
  font-family: var(--body);
  text-align: left;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding: 12px 14px 10px;
  border-bottom: 1px solid var(--hairline);
  vertical-align: bottom;
  background: transparent;
}
.lg-table tbody td {
  padding: 14px 14px;
  vertical-align: top;
  border-bottom: 1px dashed rgba(39,29,95,0.14);
  line-height: 1.5;
  color: var(--ink);
}
.lg-table tbody tr:last-child td { border-bottom: 0; }
.lg-table td b, .lg-table th b { font-weight: 700; color: var(--ink); }
.lg-table .lg-table__name {
  font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: 12.5px;
  color: var(--ink);
  white-space: nowrap;
}
.lg-table .lg-table__cat {
  font-family: var(--body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--canvas-2);
  color: var(--daisy-bush, #6c2c9c);
  white-space: nowrap;
}
.lg-table .lg-table__cat--strict { background: #ffe9f1; color: var(--cerise, #e13973); }
.lg-table .lg-table__cat--analytics { background: #efe4f8; color: var(--amethyst, #a44cc9); }
.lg-table .lg-table__cat--functional { background: var(--canvas-2); color: var(--daisy-bush, #6c2c9c); }
.lg-table .lg-table__cat--marketing { background: #fde7d4; color: #b85a17; }

/* —— Footer of the doc — contact + downloads —— */
.lg-foot {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--ink);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
@media (max-width: 720px) { .lg-foot { grid-template-columns: 1fr; } }
.lg-foot__card {
  border: 1px solid var(--hairline);
  border-radius: 4px;
  padding: 22px;
  background: #fff;
}
.lg-foot__card .lg-foot__lbl {
  font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: block;
  margin-bottom: 10px;
}
.lg-foot__card h4 {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}
.lg-foot__card p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 4px 0;
}
.lg-foot__card a { color: var(--heliotrope-deep); }
.lg-foot__card a:hover { text-decoration: underline; }

/* —— Doc reference + version chip in hero —— */
.lg-ref {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.lg-ref b { color: var(--ink); font-weight: 700; }
.lg-ref__chip {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--canvas-2);
  color: var(--daisy-bush, #6c2c9c);
  font-weight: 700;
}

/* Anchor scroll offset for sticky subnav */
.lg-body section[id] { scroll-margin-top: 130px; }

/* monospace fallback var so we don't rely on a missing token */
:root { --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; --ink-faint: #8676ab; }
