/* Business Outreach Optimizer — legal and support pages (privacy, terms, 404). */
:root {
  --abyss: #04121A;
  --glass: #0E2F3A;
  --glass-edge: #1E5563;
  --caustic: #7FF0E0;
  --ember: #FF4E1F;
  --paper: #E6F2EF;
  --mist: #8FB3B0;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --display: 'Bricolage Grotesque', 'Avenir Next Condensed', system-ui, sans-serif;
  --body: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(16px, 5vw, 72px);
  --r-section: 28px;
  --r-control: 14px;
  color-scheme: dark;
}
/* Bricolage Grotesque has no Cyrillic: Bulgarian pages set headings in Geist, which does. */
html[lang="bg"] { --display: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif; }
html[lang="bg"] .lg-doc h1 { font-weight: 700; letter-spacing: -.035em; line-height: 1.02; }
html[lang="bg"] .lg-doc h2 { font-weight: 650; letter-spacing: -.025em; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--abyss);
  background-image:
    radial-gradient(120vw 70vh at 85% -15%, rgba(30, 85, 99, .42), transparent 60%),
    radial-gradient(90vw 60vh at -15% 115%, rgba(14, 47, 58, .7), transparent 60%);
  background-attachment: fixed;
  color: var(--paper);
  font: 400 17px/1.7 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--caustic); text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; }
a:hover { color: var(--paper); }
::selection { background: rgba(127, 240, 224, .35); color: #fff; }
:focus-visible { outline: 2px solid var(--caustic); outline-offset: 3px; border-radius: 6px; }
.skip { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 12px 16px; background: var(--caustic); color: var(--abyss); border-radius: var(--r-control); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- header ---------- */
.lg-top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--gutter);
  background: rgba(4, 18, 26, .72);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid rgba(30, 85, 99, .6);
}
.lg-mark {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  color: var(--paper); text-decoration: none;
  font: 650 1rem/1.1 'Bricolage Grotesque', 'Avenir Next Condensed', system-ui, sans-serif; letter-spacing: -.01em;
}
.lg-mark svg { width: 28px; height: 28px; color: var(--caustic); flex: none; }
.lg-mark:hover { color: var(--caustic); }
.lg-tools { display: flex; align-items: center; gap: 6px; }
.lg-tools a {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; min-width: 44px; padding: 0 14px;
  border-radius: 999px; text-decoration: none;
  font: 500 .9375rem/1 var(--body); color: var(--mist);
}
.lg-tools a:hover { color: var(--paper); }
.lg-tools .lg-lang { border: 1px solid var(--glass-edge); color: var(--paper); background: rgba(14, 47, 58, .55); }
.lg-tools .lg-lang:hover { border-color: var(--caustic); }

/* ---------- article ---------- */
.lg-main { flex: 1; width: 100%; padding: clamp(40px, 8vw, 96px) var(--gutter) clamp(56px, 8vw, 112px); }
.lg-doc { max-width: 68ch; margin: 0 auto; }
.lg-kicker { margin: 0 0 14px; color: var(--mist); font-size: .9375rem; }
.lg-doc h1 {
  margin: 0 0 20px;
  font-family: var(--display); font-weight: 760;
  font-variation-settings: 'wdth' 88, 'opsz' 96;
  font-size: clamp(2.4rem, 6vw, 4.25rem); line-height: .98; letter-spacing: -.03em;
  text-wrap: balance;
}
.lg-lede { font-size: 1.1875rem; line-height: 1.6; color: var(--paper); margin: 0 0 28px; text-wrap: pretty; }
.lg-doc h2 {
  margin: 56px 0 14px;
  font-family: var(--display); font-weight: 700;
  font-variation-settings: 'wdth' 90, 'opsz' 40;
  font-size: clamp(1.5rem, 3vw, 1.9375rem); line-height: 1.1; letter-spacing: -.02em;
  text-wrap: balance;
}
.lg-doc h3 { margin: 28px 0 8px; font: 650 1.125rem/1.3 var(--display); letter-spacing: -.01em; }
.lg-doc p, .lg-doc li { color: #CFE2DE; text-wrap: pretty; }
.lg-doc p { margin: 0 0 1.05em; }
.lg-doc ul { margin: 0 0 1.2em; padding-left: 1.2em; }
.lg-doc li { margin: 0 0 .5em; }
.lg-doc li::marker { color: var(--caustic); }
.lg-doc strong { color: var(--paper); font-weight: 600; }
.lg-doc code { font: .92em/1 ui-monospace, 'SF Mono', Menlo, monospace; color: var(--caustic); }

/* summary card: the short version, in glass */
.lg-card {
  position: relative; margin: 8px 0 8px; padding: 22px 24px;
  border-radius: var(--r-section);
  background: linear-gradient(160deg, rgba(14, 47, 58, .78), rgba(14, 47, 58, .5));
  border: 1px solid var(--glass-edge);
  box-shadow: inset 0 1px 0 rgba(127, 240, 224, .12), 0 30px 60px -30px rgba(0, 0, 0, .6);
}
.lg-card h2 { margin-top: 0; font-size: 1.25rem; }
.lg-card ul { margin-bottom: 0; }
.lg-card li:last-child { margin-bottom: 0; }

.lg-meta { color: var(--mist); font-size: .9375rem; margin: 0 0 32px; }
.legal-entity {
  margin: 0; padding: 14px 18px;
  border-left: 2px solid var(--caustic);
  background: rgba(14, 47, 58, .45);
  border-radius: 0 var(--r-control) var(--r-control) 0;
  color: var(--paper) !important;
}

/* simple data table, stacks on phones */
.lg-table { width: 100%; border-collapse: collapse; margin: 6px 0 24px; font-size: .9688rem; }
.lg-table th, .lg-table td { text-align: left; vertical-align: top; padding: 12px 12px 12px 0; border-bottom: 1px solid rgba(30, 85, 99, .7); }
.lg-table th { font-weight: 600; color: var(--paper); }
.lg-table td { color: #CFE2DE; }
.lg-table thead th { color: var(--mist); font-weight: 500; font-size: .875rem; }
@media (max-width: 640px) {
  .lg-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .lg-table, .lg-table tbody, .lg-table tr, .lg-table th, .lg-table td { display: block; width: 100%; }
  .lg-table tr { padding: 12px 0; border-bottom: 1px solid rgba(30, 85, 99, .7); }
  .lg-table th, .lg-table td { border: 0; padding: 2px 0; }
  .lg-table td[data-l]::before { content: attr(data-l) ": "; color: var(--mist); }
}

/* ---------- footer ---------- */
.lg-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px;
  padding: 28px var(--gutter) calc(28px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(30, 85, 99, .6);
  color: var(--mist); font-size: .9375rem;
}
.lg-foot p { margin: 0; }
.lg-foot nav { display: flex; flex-wrap: wrap; gap: 0 4px; margin-left: -10px; }
.lg-foot nav a, .lg-foot .lg-credit a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--mist); text-decoration: none; }
.lg-foot .lg-credit a { padding: 0; color: var(--paper); }
.lg-foot a:hover { color: var(--caustic); }
.lg-foot a[aria-current="page"] { color: var(--paper); }

@media (max-width: 520px) {
  body { font-size: 16.5px; }
  .lg-mark span { font-size: .9375rem; }
  .lg-tools a.lg-hide-sm { display: none; }
  .lg-card { padding: 18px; border-radius: 22px; }
}
