/* Legal pages: /privacy/, /terms/, /cookies/, /legal/, /ai-notice/ (.site-build/legal_kit.py).
   Dark site shell, a calm reading column near 72 characters, a sticky contents list. */
.lg-page { background: #06070f; }
.lg { position: relative; z-index: 2; color: #fff; }
.lg-wrap { max-width: 1240px; }
.lg :focus-visible { outline: 2px solid #8c8eff; outline-offset: 3px; border-radius: 6px; }
.lg-top-anchor { position: absolute; top: 0; left: 0; width: 1px; height: 1px; }

/* ---------- heading block ---------- */
.lg-hero { position: relative; padding: 148px 0 56px; border-bottom: 1px solid rgba(255,255,255,0.07); }
.lg-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 80% at 20% 0%, rgba(106,108,255,0.16), transparent 70%);
}
.lg-switch { margin: 0 0 44px; }
.lg-switch ul {
  list-style: none; margin: 0; padding: 5px; display: inline-flex; gap: 4px; max-width: 100%;
  overflow-x: auto; scrollbar-width: none; border-radius: 999px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.lg-switch ul::-webkit-scrollbar { display: none; }
.lg-switch a {
  display: block; white-space: nowrap; padding: 9px 16px; border-radius: 999px; text-decoration: none;
  font-size: 13.5px; font-weight: 500; color: rgba(255,255,255,0.68);
  transition: color 0.25s, background 0.25s, transform 0.25s cubic-bezier(0.16,1,0.3,1);
}
.lg-switch a:hover { color: #fff; background: rgba(255,255,255,0.07); }
.lg-switch a:active { transform: scale(0.96); }
.lg-switch { position: relative; }
.lg-switch a[aria-current="page"] { color: #05060c; background: #fff; font-weight: 600; }

.lg-h1 {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.015em; line-height: 1.02;
  font-size: clamp(40px, 6.2vw, 80px); margin: 18px 0 22px;
}
.lg-intro { max-width: 700px; margin: 0; font-size: 18px; line-height: 1.65; color: rgba(255,255,255,0.7); }
.lg-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* ---------- buttons ---------- */
.lg-btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 10px;
  min-height: 46px; padding: 12px 22px; border-radius: 999px; cursor: pointer;
  font: 600 14px/1.2 var(--font-main); letter-spacing: 0.01em; text-decoration: none;
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), box-shadow 0.35s, background 0.3s, border-color 0.3s;
}
.lg-btn svg { width: 17px; height: 17px; flex: none; }
.lg-btn::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; transform: translateX(-130%) skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
  transition: transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.lg-btn:hover { transform: translateY(-2px); }
.lg-btn:hover::after { transform: translateX(130%) skewX(-18deg); }
.lg-btn:active { transform: translateY(0) scale(0.97); }
.lg-btn--solid { background: #fff; color: #05060c; border: 1px solid #fff; }
.lg-btn--solid::after { background: linear-gradient(90deg, transparent, rgba(106,108,255,0.3), transparent); }
.lg-btn--solid:hover { box-shadow: 0 14px 40px rgba(140,142,255,0.28); }
.lg-btn--ghost { background: rgba(255,255,255,0.04); color: #fff; border: 1px solid rgba(255,255,255,0.22); }
.lg-btn--ghost:hover { border-color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.08); box-shadow: 0 0 26px rgba(106,108,255,0.22); }

/* ---------- layout ---------- */
.lg-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 72px; align-items: start; padding-top: 56px; padding-bottom: 96px; }
.lg-aside { position: sticky; top: 108px; max-height: calc(100vh - 128px); overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; }

/* contents */
.lg-toc { border-radius: 18px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); padding: 8px; }
.lg-toc summary {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; cursor: pointer; list-style: none; border-radius: 12px;
  font-family: var(--font-display); font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.6);
}
.lg-toc summary::-webkit-details-marker { display: none; }
.lg-toc summary svg { width: 16px; height: 16px; flex: none; }
.lg-toc summary svg:last-child { margin-left: auto; transition: transform 0.3s cubic-bezier(0.16,1,0.3,1); }
.lg-toc[open] summary svg:last-child { transform: rotate(180deg); }
.lg-toc ol { list-style: none; margin: 0; padding: 4px 0 6px; counter-reset: toc; }
.lg-toc li { counter-increment: toc; }
.lg-toc a {
  position: relative; display: flex; gap: 12px; padding: 8px 12px; border-radius: 10px; text-decoration: none;
  font-size: 13.5px; line-height: 1.45; color: rgba(255,255,255,0.62); transition: color 0.25s, background 0.25s;
}
.lg-toc a::before { content: counter(toc, decimal-leading-zero); flex: none; width: 20px; font-variant-numeric: tabular-nums; font-size: 12px; line-height: 1.7; color: rgba(255,255,255,0.32); transition: color 0.25s; }
.lg-toc a:hover { color: #fff; background: rgba(255,255,255,0.05); }
.lg-toc a.is-on { color: #fff; background: rgba(106,108,255,0.14); }
.lg-toc a.is-on::before { color: #a9abff; }

/* ---------- the document ---------- */
.lg-doc { max-width: 760px; counter-reset: sec; font-size: 16.5px; line-height: 1.75; color: rgba(255,255,255,0.76); }
.lg-doc p { margin: 0 0 16px; }
.lg-doc b, .lg-doc strong { color: #fff; font-weight: 600; }
.lg-doc a { color: #c4c6ff; text-decoration: underline; text-decoration-color: rgba(196,198,255,0.4); text-underline-offset: 3px; transition: color 0.25s, text-decoration-color 0.25s; }
.lg-doc a:hover { color: #fff; text-decoration-color: #fff; }
.lg-doc code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.86em; padding: 2px 7px; border-radius: 6px; background: rgba(255,255,255,0.08); color: #e2e3ff; white-space: nowrap; }
.lg-doc ul { margin: 0 0 18px; padding: 0; list-style: none; }
.lg-doc li { position: relative; padding-left: 24px; margin: 0 0 10px; }
.lg-doc li > p { margin: 8px 0 0; }
.lg-doc li > p:last-child { margin-bottom: 0; }
.lg-doc li::before { content: ""; position: absolute; left: 4px; top: 0.72em; width: 6px; height: 6px; border-radius: 50%; background: #8c8eff; box-shadow: 0 0 10px rgba(140,142,255,0.6); }

.lg-anchor { display: block; position: relative; top: -112px; height: 0; visibility: hidden; }
.lg-sec { counter-increment: sec; padding: 40px 0 24px; border-top: 1px solid rgba(255,255,255,0.08); }
.lg-sec:first-of-type { border-top: 0; }
.lg-short + .lg-sec { border-top: 0; padding-top: 48px; }
.lg-sec h2 {
  display: flex; align-items: baseline; gap: 16px; margin: 0 0 18px;
  font-family: var(--font-display); font-size: clamp(22px, 2.3vw, 28px); font-weight: 600; line-height: 1.25; letter-spacing: -0.005em; color: #fff;
}
.lg-sec h2::before { content: counter(sec, decimal-leading-zero); flex: none; font-size: 14px; font-weight: 600; letter-spacing: 0.06em; color: #8c8eff; font-variant-numeric: tabular-nums; }
.lg-sec h2:focus { outline: none; }
.lg-sec h3 { margin: 26px 0 10px; font-family: var(--font-display); font-size: 18px; font-weight: 600; color: #fff; }

/* the short version */
.lg-short {
  position: relative; padding: 26px 28px 20px; border-radius: 20px; margin-bottom: 8px;
  background: linear-gradient(160deg, rgba(106,108,255,0.14), rgba(255,255,255,0.03));
  border: 1px solid rgba(140,142,255,0.28);
}
.lg-short-h { display: flex; align-items: center; gap: 10px; margin: 0 0 14px !important; font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #c4c6ff; }
.lg-short-h svg { width: 18px; height: 18px; }
.lg-short ul { margin-bottom: 12px; }
.lg-short li { color: rgba(255,255,255,0.86); font-size: 15.5px; line-height: 1.6; }
.lg-short-f { margin: 0 !important; font-size: 13px; color: rgba(255,255,255,0.5); }

/* notes */
.lg-note { margin: 18px 0 20px; padding: 20px 22px 6px; border-radius: 16px; background: rgba(106,108,255,0.07); border: 1px solid rgba(140,142,255,0.2); }
.lg-note-h { margin: 0 0 8px !important; font-weight: 600; color: #fff; font-size: 15.5px; }
.lg-note p { font-size: 15.5px; }

/* definition rows */
.lg-dl { margin: 6px 0 20px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.09); overflow: hidden; background: rgba(255,255,255,0.02); }
.lg-dl div { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 20px; padding: 14px 20px; border-top: 1px solid rgba(255,255,255,0.07); }
.lg-dl div:first-child { border-top: 0; }
.lg-dl dt { font-size: 13.5px; font-weight: 600; color: rgba(255,255,255,0.55); line-height: 1.6; }
.lg-dl dd { margin: 0; color: #fff; font-size: 15.5px; line-height: 1.6; overflow-wrap: anywhere; }

/* tables */
.lg-table { margin: 8px 0 22px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.1); overflow: hidden; background: rgba(255,255,255,0.02); }
.lg-table table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.6; }
.lg-table thead th { text-align: left; padding: 13px 16px; font-family: var(--font-display); font-size: 11.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.55); background: rgba(255,255,255,0.04); border-bottom: 1px solid rgba(255,255,255,0.1); }
.lg-table tbody th, .lg-table td { text-align: left; vertical-align: top; padding: 14px 16px; border-top: 1px solid rgba(255,255,255,0.07); }
.lg-table tbody tr:first-child th, .lg-table tbody tr:first-child td { border-top: 0; }
.lg-table tbody th { font-weight: 600; color: #fff; width: 30%; }
.lg-table td { color: rgba(255,255,255,0.74); }

/* cookie inventory: one card per item */
.lg-doc .lg-cookies { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 8px 0 22px; }
.lg-doc .lg-ck { padding: 18px 20px 16px; margin: 0; border-radius: 16px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1); }
.lg-doc .lg-ck::before { display: none; }
.lg-ck-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin-bottom: 10px; }
.lg-ck-top code { font-size: 14px !important; padding: 4px 10px !important; max-width: 100%; overflow-wrap: anywhere; }
.lg-chip { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.4; }
.lg-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.lg-chip--nec { color: #9fe3bf; background: rgba(76,201,140,0.12); }
.lg-chip--opt { color: #c4c6ff; background: rgba(106,108,255,0.16); }
.lg-chip--fn { color: #f3d58e; background: rgba(227,180,70,0.12); }
.lg-ck p { margin: 0 0 12px !important; font-size: 15px; line-height: 1.6; color: rgba(255,255,255,0.8); }
.lg-ck-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 20px; margin: 0; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.07); }
.lg-ck-meta dt { font-family: var(--font-display); font-size: 10.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.45); }
.lg-ck-meta dd { margin: 3px 0 0; font-size: 14px; line-height: 1.5; color: #fff; }

.lg-inline-btn {
  display: inline; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; color: #c4c6ff;
  text-decoration: underline; text-decoration-color: rgba(196,198,255,0.4); text-underline-offset: 3px;
}
.lg-inline-btn:hover { color: #fff; text-decoration-color: #fff; }

.lg-addr { font-style: normal; display: flex; flex-direction: column; gap: 2px; font-size: 14.5px; line-height: 1.6; color: rgba(255,255,255,0.7); }
.lg-addr b { color: #fff; font-weight: 600; margin-bottom: 4px; }

.lg-end-note { margin-top: 36px !important; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.08); font-size: 13.5px; color: rgba(255,255,255,0.5); line-height: 1.65; }
/* "Last updated" sits on the rule; the issuer line follows it without a second rule */
.lg-updated { color: rgba(255,255,255,0.7); }
.lg-updated + .lg-end-note { margin-top: 4px !important; padding-top: 0; border-top: 0; }
.lg-top {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; padding: 8px 14px 8px 10px; border-radius: 999px;
  color: rgba(255,255,255,0.7) !important; text-decoration: none !important; font-size: 13.5px; border: 1px solid rgba(255,255,255,0.14);
  transition: color 0.25s, border-color 0.25s, transform 0.3s cubic-bezier(0.16,1,0.3,1);
}
.lg-top svg { width: 15px; height: 15px; transition: transform 0.3s cubic-bezier(0.16,1,0.3,1); }
.lg-top:hover { color: #fff !important; border-color: rgba(255,255,255,0.5); }
.lg-top:hover svg { transform: translateY(-2px); }
.lg-top:active { transform: scale(0.96); }

/* ---------- questions + other documents ---------- */
.lg-more { padding: 0 0 110px; }
.lg-ask {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px 56px; align-items: center;
  padding: 36px 40px; border-radius: 24px;
  background: linear-gradient(150deg, rgba(28,30,58,0.7), rgba(10,11,22,0.7)); border: 1px solid rgba(255,255,255,0.1);
}
.lg-ask h2 { margin: 0 0 10px; font-family: var(--font-display); font-size: clamp(24px, 2.6vw, 32px); font-weight: 600; line-height: 1.2; }
.lg-ask p { margin: 0; font-size: 15.5px; line-height: 1.65; color: rgba(255,255,255,0.7); }
.lg-ask a { color: #c4c6ff; }
.lg-others { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.lg-other {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 20px; border-radius: 18px;
  text-decoration: none; color: #fff; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.09);
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), border-color 0.3s, background 0.3s;
}
.lg-other small { display: block; font-family: var(--font-display); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.45); margin-bottom: 4px; }
.lg-other b { font-weight: 600; font-size: 15.5px; }
.lg-other svg { width: 16px; height: 16px; flex: none; color: #8c8eff; transition: transform 0.35s cubic-bezier(0.16,1,0.3,1); }
.lg-other:hover { transform: translateY(-3px); border-color: rgba(140,142,255,0.5); background: rgba(106,108,255,0.08); }
.lg-other:hover svg { transform: translateX(4px); }
.lg-other:active { transform: scale(0.98); }

/* ---------- responsive ---------- */
@media (min-width: 1024px) {
  .lg-toc summary { display: none; }
}
@media (max-width: 1023px) {
  .lg-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 32px; }
  .lg-aside { position: static; max-height: none; overflow: visible; }
  .lg-doc { max-width: none; }
  .lg-others { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .lg-hero { padding: 116px 0 40px; }
  .lg-switch { margin-bottom: 30px; }
  .lg-switch ul { display: flex; }
  .lg-intro { font-size: 16.5px; }
  .lg-actions { margin-top: 26px; }
  .lg-actions .lg-btn { flex: 1 1 auto; justify-content: center; }
  .lg-doc { font-size: 16px; line-height: 1.7; }
  .lg-sec { padding: 32px 0 18px; }
  .lg-short { padding: 22px 20px 16px; }
  .lg-dl div { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 12px 16px; }
  /* tables become one card per row, each cell keeping its column name */
  .lg-table { border: 0; background: none; border-radius: 0; overflow: visible; }
  .lg-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .lg-table table, .lg-table tbody, .lg-table tr, .lg-table tbody th, .lg-table td { display: block; width: auto !important; }
  .lg-table tr { margin: 0 0 12px; border-radius: 14px; border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.03); overflow: hidden; }
  .lg-table tbody th, .lg-table td { border-top: 1px solid rgba(255,255,255,0.07); padding: 11px 16px; }
  .lg-table tbody th { border-top: 0; background: rgba(255,255,255,0.04); }
  .lg-table td::before { content: attr(data-th); display: block; margin-bottom: 2px; font-family: var(--font-display); font-size: 10.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.45); }
  .lg-ck-meta { grid-template-columns: minmax(0, 1fr); }
  .lg-ask { grid-template-columns: minmax(0, 1fr); padding: 26px 22px; }
  .lg-others { grid-template-columns: minmax(0, 1fr); }
  .lg-more { padding-bottom: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  .lg-btn, .lg-btn::after, .lg-other, .lg-other svg, .lg-switch a, .lg-top, .lg-top svg, .lg-toc summary svg { transition: none; }
  .lg-btn:hover, .lg-other:hover, .lg-top:hover svg { transform: none; }
}

/* ---------- print ---------- */
@media print {
  @page { margin: 18mm 16mm; }
  .lg-page, .lg-page body { background: #fff !important; }
  .lg-page .navbar, .lg-page nav.navbar, .lg-page header, .lg-page .global-glass-bg, .lg-page .scroll-progress,
  .lg-page footer.footer, .lg-switch, .lg-actions, .lg-aside, .lg-more, .lg-top, .dvc, .mobile-menu { display: none !important; }
  .lg, .lg-doc, .lg-doc b, .lg-doc a, .lg-sec h2, .lg-sec h3, .lg-h1, .lg-intro, .lg-meta dd, .lg-meta dt,
  .lg-table td, .lg-table tbody th, .lg-dl dd, .lg-dl dt, .lg-short li, .lg-note-h, .lg-end-note { color: #000 !important; }
  .lg-hero { padding: 0 0 16px; border-color: #ccc; }
  .lg-hero::before { display: none; }
  .lg-layout { display: block; padding-top: 16px; }
  .lg-doc { max-width: none; font-size: 11pt; line-height: 1.5; }
  .lg-short, .lg-note, .lg-dl, .lg-table { background: none !important; border-color: #bbb !important; }
  .lg-sec { break-inside: auto; border-color: #ddd; }
  .lg-sec h2 { break-after: avoid; }
  .lg-sec h2::before, .lg-short-h { color: #000 !important; }
  .lg-doc li::before { background: #000; box-shadow: none; }
  .lg-doc code { background: none; color: #000; }
}
