/* Lobbee legal pages (privacy, terms, cookies). Light, clinical, tech: a fine grid and a teal→indigo glow behind
   the hero, numbered sections, and a sticky contents rail that follows the reader. Shared by /privacy, /terms, /cookies. */
:root {
  --bg: #FFFFFF;
  --tint: #F7F9FB;
  --fg: #0B1220;
  --body: #364152;
  --muted: #5B6475;
  --faint: #8B93A7;
  --line: #E6EAF0;
  --line-strong: #D5DBE4;
  --teal: #0D9488;
  --teal-bright: #14B8A6;
  --teal-soft: #E6F6F4;
  --indigo: #5B5BD6;
  --indigo-soft: #EEEEFC;
  --gradient: linear-gradient(135deg, #14B8A6 0%, #3B82F6 55%, #6366F1 100%);
  --font: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(11, 18, 32, 0.04), 0 8px 24px -12px rgba(11, 18, 32, 0.08);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--body); font-family: var(--font); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
::selection { background: var(--teal-soft); color: var(--fg); }

.container { max-width: 1180px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 720px) { .container { padding-left: 32px; padding-right: 32px; } }

/* Top bar: glassy white, hairline when scrolled */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.82); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.nav .logo img { height: 30px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { color: var(--muted); font-size: 14px; font-weight: 500; padding: 8px 12px; border-radius: 999px; }
.nav-links a:hover { color: var(--fg); background: var(--tint); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--fg); background: var(--tint); }
.btn { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; padding: 9px 16px; border-radius: 999px; color: #fff; background: var(--fg); transition: transform .15s, box-shadow .15s; }
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 8px 20px -8px rgba(11, 18, 32, 0.45); }
.btn svg { width: 14px; height: 14px; }
.nav-links .btn, .nav-links .btn:hover { color: #fff; background: var(--fg); }
@media (max-width: 760px) { .nav-links .doc-link { display: none; } }

/* Hero: grid + glow, giant tight headline, mono eyebrow */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 75%); opacity: .7; }
.hero::after { content: ""; position: absolute; width: 760px; height: 420px; right: -160px; top: -200px; background: radial-gradient(closest-side, rgba(20, 184, 166, 0.22), transparent), radial-gradient(closest-side at 70% 60%, rgba(99, 102, 241, 0.2), transparent); filter: blur(10px); pointer-events: none; }
.hero .container { position: relative; z-index: 1; padding-top: 72px; padding-bottom: 56px; }
@media (min-width: 900px) { .hero .container { padding-top: 104px; padding-bottom: 72px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); background: rgba(255, 255, 255, 0.8); border: 1px solid var(--line); padding: 6px 12px 6px 8px; border-radius: 999px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gradient); box-shadow: 0 0 0 4px var(--teal-soft); }
.hero h1 { margin: 24px 0 0; color: var(--fg); font-size: clamp(40px, 7vw, 76px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 600; max-width: 14ch; }
.hero h1 .grad { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { margin: 22px 0 0; max-width: 62ch; font-size: clamp(17px, 2vw, 19px); color: var(--muted); line-height: 1.6; }
.meta { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 32px; font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.meta span { display: inline-flex; align-items: center; gap: 8px; }
.meta b { color: var(--fg); font-weight: 500; }
.meta svg { width: 14px; height: 14px; color: var(--faint); }

/* Doc switcher: segmented pills */
.switch { display: inline-flex; gap: 4px; margin-top: 36px; padding: 4px; background: var(--tint); border: 1px solid var(--line); border-radius: 999px; max-width: 100%; overflow-x: auto; }
.switch a { white-space: nowrap; font-size: 14px; font-weight: 500; color: var(--muted); padding: 8px 16px; border-radius: 999px; }
.switch a:hover { color: var(--fg); text-decoration: none; }
.switch a[aria-current="page"] { background: #fff; color: var(--fg); box-shadow: 0 1px 2px rgba(11, 18, 32, 0.08), 0 0 0 1px var(--line); }

/* At a glance cards */
.glance { padding: 56px 0 8px; }
.glance h2 { margin: 0 0 20px; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 20px; box-shadow: var(--shadow); transition: border-color .2s, transform .2s; }
.card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.card .icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal); margin-bottom: 16px; }
.card:nth-child(even) .icon { background: var(--indigo-soft); color: var(--indigo); }
.card .icon svg { width: 20px; height: 20px; }
.card h3 { margin: 0 0 6px; font-size: 16px; color: var(--fg); font-weight: 600; letter-spacing: -0.01em; }
.card p { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.55; }

/* Body: contents rail + article */
.doc { display: grid; gap: 48px; padding: 48px 0 96px; }
@media (min-width: 1000px) { .doc { grid-template-columns: 250px minmax(0, 1fr); gap: 72px; padding-top: 64px; } }
.toc { display: none; }
@media (min-width: 1000px) { .toc { display: block; position: sticky; top: 96px; align-self: start; max-height: calc(100vh - 120px); overflow-y: auto; } }
.toc .label { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0 0 0 1px; border-left: 1px solid var(--line); }
.toc a { display: flex; gap: 10px; font-size: 13.5px; line-height: 1.4; color: var(--muted); padding: 7px 0 7px 16px; margin-left: -1px; border-left: 2px solid transparent; transition: color .15s, border-color .15s; }
.toc a .n { font-family: var(--mono); font-size: 11.5px; color: var(--faint); padding-top: 1px; }
.toc a:hover { color: var(--fg); text-decoration: none; }
.toc a.active { color: var(--fg); border-left-color: var(--teal-bright); font-weight: 500; }
.toc a.active .n { color: var(--teal); }

article { max-width: 760px; min-width: 0; }
article section { padding-top: 8px; margin-bottom: 56px; }
article section + section { border-top: 1px solid var(--line); padding-top: 48px; }
article h2 { display: flex; align-items: baseline; gap: 14px; margin: 0 0 18px; color: var(--fg); font-size: clamp(24px, 3vw, 30px); line-height: 1.2; letter-spacing: -0.03em; font-weight: 600; }
article h2 .n { flex: none; font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--teal); background: var(--teal-soft); padding: 3px 8px; border-radius: 6px; transform: translateY(-4px); }
article h3 { margin: 32px 0 10px; color: var(--fg); font-size: 18px; letter-spacing: -0.015em; font-weight: 600; }
article p { margin: 0 0 16px; }
article ul, article ol { margin: 0 0 18px; padding-left: 22px; }
article li { margin: 6px 0; }
article li::marker { color: var(--teal-bright); }
article strong { color: var(--fg); font-weight: 600; }
article code { font-family: var(--mono); font-size: 13.5px; background: var(--tint); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; color: var(--fg); }

.callout { position: relative; margin: 24px 0; padding: 18px 20px 18px 22px; background: linear-gradient(180deg, #FBFEFE, #F5FBFA); border: 1px solid #CDEDE8; border-radius: 12px; }
.callout::before { content: ""; position: absolute; left: -1px; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: var(--gradient); }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout .title { display: block; margin-bottom: 6px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal); }

.table-wrap { margin: 20px 0 24px; border: 1px solid var(--line); border-radius: 12px; overflow-x: auto; box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; min-width: 560px; }
th { text-align: left; font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); background: var(--tint); padding: 12px 16px; border-bottom: 1px solid var(--line); }
td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td:first-child { color: var(--fg); font-weight: 500; }
td code { white-space: nowrap; }
.tag { display: inline-block; font-family: var(--mono); font-size: 11.5px; padding: 2px 8px; border-radius: 999px; background: var(--teal-soft); color: var(--teal); white-space: nowrap; }
.tag.alt { background: var(--indigo-soft); color: var(--indigo); }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 12px; }
.steps li { counter-increment: step; position: relative; margin: 0; padding: 16px 18px 16px 60px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 18px; top: 16px; font-family: var(--mono); font-size: 13px; color: var(--teal); font-weight: 500; }

/* Contact band */
.contact { margin-top: 24px; display: grid; gap: 20px; align-items: center; padding: 32px; border-radius: 18px; background: radial-gradient(120% 140% at 100% 0%, rgba(99, 102, 241, 0.10), transparent 55%), radial-gradient(120% 140% at 0% 100%, rgba(20, 184, 166, 0.12), transparent 55%), var(--tint); border: 1px solid var(--line); }
@media (min-width: 720px) { .contact { grid-template-columns: 1fr auto; } }
.contact h3 { margin: 0 0 6px; font-size: 20px; letter-spacing: -0.02em; color: var(--fg); }
.contact p { margin: 0; color: var(--muted); }

/* Footer */
footer { border-top: 1px solid var(--line); background: var(--tint); }
footer .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 28px; padding-bottom: 28px; font-size: 14px; color: var(--muted); }
footer .brand { display: flex; align-items: center; gap: 10px; }
footer .brand img { height: 22px; width: auto; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
footer nav a { color: var(--muted); }
footer nav a:hover { color: var(--fg); }

/* Entrance */
@media (prefers-reduced-motion: no-preference) {
  .hero .container > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
  .hero .container > *:nth-child(2) { animation-delay: .06s; }
  .hero .container > *:nth-child(3) { animation-delay: .12s; }
  .hero .container > *:nth-child(4) { animation-delay: .18s; }
  .hero .container > *:nth-child(5) { animation-delay: .24s; }
  @keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}

@media print {
  .nav, .toc, .switch, footer, .hero::before, .hero::after { display: none !important; }
  .doc { display: block; padding: 0; }
  article section + section { border-top: 0; }
  .card, .table-wrap { box-shadow: none; }
}
