/* Roosty legal pages - matches the site's dark, cinematic house style
   (Inter, cream #fff3f0 text, dusty-pink #d39794 + emerald accents, thin
   rgba borders, graphite surfaces, 720px reading column). */

:root {
  --lg-bg: #0a0a0b;
  --lg-bg-2: #0f0f10;
  --lg-surface: rgba(255, 255, 255, 0.03);
  --lg-surface-2: rgba(255, 255, 255, 0.05);
  --lg-border: rgba(255, 255, 255, 0.1);
  --lg-border-soft: rgba(255, 255, 255, 0.07);
  --lg-cream: #fff3f0;
  --lg-text: rgba(255, 255, 255, 0.74);
  --lg-text-dim: rgba(255, 255, 255, 0.46);
  --lg-pink: #d39794;
  --lg-emerald: rgb(134, 239, 172);
  --lg-radius: 16px;
  --lg-radius-sm: 10px;
  --lg-max: 760px;
  --lg-font: "Inter", "Inter Placeholder", -apple-system, BlinkMacSystemFont, sans-serif;
  --lg-mono: "Fragment Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--lg-bg);
  color: var(--lg-text);
  font-family: var(--lg-font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* subtle top glow echoing the site's hero */
  background-image:
    radial-gradient(120% 60% at 50% -10%, rgba(211, 151, 148, 0.10), transparent 60%);
  background-repeat: no-repeat;
  min-height: 100dvh;
}

.lg-wrap { max-width: var(--lg-max); margin: 0 auto; padding: 0 24px; }

/* ---- top bar ---- */
.lg-top {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  background: rgba(10, 10, 11, 0.72);
  border-bottom: 1px solid var(--lg-border-soft);
}
.lg-top-inner {
  max-width: 1120px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.lg-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.lg-brand img { height: 30px; width: auto; display: block; }
.lg-brand span { color: var(--lg-cream); font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.lg-back {
  color: var(--lg-text-dim); text-decoration: none; font-size: 14px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 14px; border-radius: 99px; border: 1px solid var(--lg-border);
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}
.lg-back:hover { color: var(--lg-cream); border-color: rgba(255,255,255,.22); background: var(--lg-surface); }
.lg-back svg { width: 15px; height: 15px; }

/* ---- header ---- */
.lg-head { padding: 72px 0 40px; }
.lg-eyebrow {
  display: inline-block; font-size: 12.5px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--lg-pink);
  padding: 6px 12px; border: 1px solid rgba(211,151,148,.3); border-radius: 99px;
  margin-bottom: 22px;
}
.lg-head h1 {
  color: var(--lg-cream); font-size: clamp(30px, 6vw, 46px); line-height: 1.08;
  letter-spacing: -0.03em; font-weight: 600; margin: 0 0 16px;
}
.lg-lead { font-size: 17px; color: var(--lg-text); max-width: 62ch; margin: 0; }
.lg-updated { margin-top: 22px; font-size: 13.5px; color: var(--lg-text-dim); }
.lg-updated b { color: rgba(255,255,255,.6); font-weight: 500; }

/* ---- table of contents ---- */
.lg-toc {
  margin: 32px 0 8px; padding: 20px 22px;
  background: var(--lg-surface); border: 1px solid var(--lg-border-soft); border-radius: var(--lg-radius);
}
.lg-toc h2 { font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--lg-text-dim); margin: 0 0 12px; font-weight: 600; }
.lg-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; columns: 2; column-gap: 28px; }
.lg-toc li { counter-increment: toc; margin: 0 0 9px; break-inside: avoid; }
.lg-toc a { color: var(--lg-text); text-decoration: none; font-size: 14.5px; display: inline-flex; gap: 9px; transition: color .16s ease; }
.lg-toc a::before { content: counter(toc, decimal-leading-zero); color: var(--lg-pink); font-variant-numeric: tabular-nums; font-size: 12.5px; padding-top: 1px; }
.lg-toc a:hover { color: var(--lg-cream); }

/* ---- body content ---- */
.lg-body { padding: 24px 0 40px; }
.lg-section { padding: 30px 0; border-top: 1px solid var(--lg-border-soft); scroll-margin-top: 90px; }
.lg-section:first-child { border-top: none; }
.lg-section h2 {
  color: var(--lg-cream); font-size: 23px; line-height: 1.25; letter-spacing: -0.02em;
  font-weight: 600; margin: 0 0 14px; display: flex; gap: 12px; align-items: baseline;
}
.lg-section h2 .n { color: var(--lg-pink); font-size: 15px; font-variant-numeric: tabular-nums; font-weight: 600; }
.lg-section h3 { color: var(--lg-cream); font-size: 16.5px; font-weight: 600; margin: 24px 0 8px; letter-spacing: -0.01em; }
.lg-section p { margin: 0 0 14px; }
.lg-section a { color: var(--lg-pink); text-decoration: none; border-bottom: 1px solid rgba(211,151,148,.35); transition: color .16s, border-color .16s; }
.lg-section a:hover { color: var(--lg-cream); border-color: var(--lg-cream); }
.lg-section ul { margin: 4px 0 16px; padding: 0; list-style: none; }
.lg-section ul li { position: relative; padding-left: 22px; margin: 0 0 9px; }
.lg-section ul li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 6px; height: 6px; border-radius: 99px; background: var(--lg-pink); opacity: .8; }
.lg-section ul li b { color: rgba(255,255,255,.86); font-weight: 600; }
.lg-section strong { color: rgba(255,255,255,.9); font-weight: 600; }

/* data cards (contact details, processor grid) */
.lg-card {
  margin: 6px 0 18px; padding: 20px 22px;
  background: var(--lg-surface); border: 1px solid var(--lg-border-soft); border-radius: var(--lg-radius);
}
.lg-defs { margin: 0; display: grid; grid-template-columns: 190px 1fr; gap: 12px 20px; }
.lg-defs dt { color: var(--lg-text-dim); font-size: 14px; }
.lg-defs dd { margin: 0; color: rgba(255,255,255,.85); font-size: 14.5px; }
.lg-defs dd a { color: var(--lg-pink); text-decoration: none; }

/* note / callout */
.lg-note {
  margin: 22px 0; padding: 16px 20px; border-radius: var(--lg-radius-sm);
  background: rgba(211,151,148,.06); border: 1px solid rgba(211,151,148,.22);
  font-size: 14.5px; color: rgba(255,255,255,.72);
}
.lg-note strong { color: var(--lg-pink); }

/* value that still needs to be filled in from legal-config.js */
.lg-fill {
  color: var(--lg-pink); background: rgba(211,151,148,.1);
  border: 1px dashed rgba(211,151,148,.4); border-radius: 6px;
  padding: 1px 7px; font-size: 0.92em; font-family: var(--lg-mono);
}

/* categories table for the cookie policy */
.lg-table { width: 100%; border-collapse: collapse; margin: 8px 0 18px; font-size: 14px; }
.lg-table th, .lg-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--lg-border-soft); vertical-align: top; }
.lg-table th { color: var(--lg-text-dim); font-weight: 600; font-size: 12.5px; letter-spacing: 0.03em; text-transform: uppercase; }
.lg-table td { color: rgba(255,255,255,.78); }
.lg-table td:first-child { color: var(--lg-cream); font-weight: 500; white-space: nowrap; }
.lg-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* reopen consent button inside a page */
.lg-consent-btn {
  appearance: none; cursor: pointer; font-family: inherit; font-size: 14.5px; font-weight: 600;
  color: rgb(23,23,23); background: var(--lg-cream); border: none; border-radius: 99px;
  padding: 11px 20px; transition: transform .12s ease, opacity .18s ease;
}
.lg-consent-btn:hover { opacity: .92; }
.lg-consent-btn:active { transform: scale(.97); }

/* ---- footer ---- */
.lg-foot { border-top: 1px solid var(--lg-border-soft); margin-top: 30px; padding: 40px 0 60px; }
.lg-foot-inner { max-width: 1120px; margin: 0 auto; padding: 0 24px; display: flex; flex-wrap: wrap; gap: 18px 26px; align-items: center; justify-content: space-between; }
.lg-foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.lg-foot-links a, .lg-foot-links button {
  color: var(--lg-text-dim); text-decoration: none; font-size: 14px; font-weight: 500;
  background: none; border: none; padding: 0; cursor: pointer; font-family: inherit;
  transition: color .16s ease;
}
.lg-foot-links a:hover, .lg-foot-links button:hover { color: var(--lg-cream); }
.lg-foot-copy { color: var(--lg-text-dim); font-size: 13.5px; }

/* focus states (accessibility) */
a:focus-visible, button:focus-visible, .lg-back:focus-visible {
  outline: 2px solid var(--lg-pink); outline-offset: 3px; border-radius: 6px;
}

@media (max-width: 640px) {
  .lg-head { padding: 48px 0 28px; }
  .lg-toc ol { columns: 1; }
  .lg-defs { grid-template-columns: 1fr; gap: 4px 0; }
  .lg-defs dt { margin-top: 10px; }
  .lg-foot-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
