:root {
  --bg: #070B12;
  --page-bg: #070B12;
  --surface: #0d121d;
  --surface-soft: #111827;
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.24);
  --text: #f5f7fb;
  --muted: #c8ced8;
  --subtle: #8993a3;
  --accent: #f06150;
  --accent-dark: #9a302b;
  --max: 1180px;
  --section-y: clamp(54px, 7vw, 86px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}

html.legal-doc {
  scroll-snap-type: none;
}

html {
  scrollbar-width: none;
}

::-webkit-scrollbar {
  display: none;
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  letter-spacing: 0;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 1000;
  transform: translateY(-150%);
  border: 1px solid var(--line-strong);
  background: var(--text);
  color: var(--bg);
  padding: 10px 14px;
  border-radius: 4px;
}

.skip-link:focus {
  transform: translateY(0);
}

.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 80;
  height: 2px;
  width: var(--scroll-progress, 0%);
  background: linear-gradient(90deg, var(--accent), #ffc1b8);
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
  padding: 18px clamp(18px, 5vw, 64px);
  background: linear-gradient(180deg, rgba(7, 11, 18, 0.88), rgba(7, 11, 18, 0.38) 78%, rgba(7, 11, 18, 0));
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-lockup {
  display: grid;
  gap: 0;
}

.brand-name {
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0;
}

.brand-subtitle {
  font-size: 7px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 1.6px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
  color: var(--muted);
  font-size: 14px;
}

.nav-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: color 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: center;
  min-height: 100dvh;
  padding: 140px clamp(20px, 6vw, 72px) var(--section-y);
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.hero-media,
.hero-media img,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: -3;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  z-index: -2;
  background:
    radial-gradient(circle at 76% 20%, rgba(240, 97, 80, 0.23), transparent 30%),
    linear-gradient(90deg, rgba(7, 11, 18, 0.96) 0%, rgba(7, 11, 18, 0.82) 44%, rgba(7, 11, 18, 0.48) 100%),
    linear-gradient(180deg, rgba(7, 11, 18, 0.22) 0%, rgba(7, 11, 18, 0.82) 78%, rgba(7, 11, 18, 0.98) 100%);
}

.hero-inner {
  width: min(760px, 100%);
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.9px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(40px, 6.6vw, 84px);
  line-height: 1.02;
  font-weight: 650;
}

.hero-copy {
  max-width: 660px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 25px);
  line-height: 1.42;
}

.section {
  display: grid;
  align-content: center;
  min-height: 100dvh;
  padding: var(--section-y) clamp(20px, 6vw, 72px);
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.intro {
  padding-bottom: calc(var(--section-y) + clamp(78px, 11vh, 132px));
  background: var(--page-bg);
}

.section > .section-kicker {
  width: min(var(--max), 100%);
  margin-inline: auto;
}

.section-grid,
.governance-layout {
  width: min(var(--max), 100%);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(34px, 7vw, 96px);
}

.section h2,
.contact h2 {
  margin-bottom: 0;
  font-size: clamp(34px, 5vw, 66px);
  line-height: 1.04;
  font-weight: 620;
}

.intro-copy {
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
}

.intro-copy p:last-child {
  margin-bottom: 0;
}

.pillars {
  background: var(--page-bg);
}

.section-heading {
  width: min(var(--max), 100%);
  margin: 0 auto 34px;
}

.pillar-grid {
  width: min(var(--max), 100%);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 70px);
}

.pillar {
  min-height: 320px;
  padding: 0;
  background: transparent;
}

.pillar-index {
  margin-bottom: 22px;
  color: var(--accent);
  font-size: 16px;
  font-weight: 800;
}

.pillar h3 {
  margin-bottom: 14px;
  font-size: 26px;
  line-height: 1.15;
}

.pillar p {
  margin-bottom: 0;
  color: var(--muted);
}

.governance p {
  margin-top: 26px;
  color: var(--muted);
  font-size: 19px;
}

.metrics {
  display: grid;
  gap: 24px;
  margin: 0;
  background: transparent;
  border: 0;
}

.metrics div {
  position: relative;
  padding: 0 0 0 24px;
  background: transparent;
}

.metrics div::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.metrics dt {
  margin-bottom: 7px;
  color: var(--text);
  font-size: 19px;
  font-weight: 800;
}

.metrics dd {
  margin: 0;
  color: var(--muted);
}

.contact {
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: center;
  min-height: 100dvh;
  padding: var(--section-y) clamp(20px, 6vw, 72px) 0;
  background: transparent;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.contact-inner {
  width: min(var(--max), 100%);
  margin-inline: auto;
}

.contact h2 {
  max-width: 980px;
  margin-bottom: 28px;
}

.contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: var(--accent);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 600;
  text-decoration: none;
}

.site-footer {
  padding: 28px 0;
  background: transparent;
}

.footer-inner {
  width: min(var(--max), 100%);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.footer-inner p {
  margin: 0;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: color 180ms ease;
}

.footer-link:hover,
.footer-link:focus-visible {
  color: var(--accent);
}

.legal-page {
  min-height: 100dvh;
  background:
    radial-gradient(circle at 80% 12%, rgba(240, 97, 80, 0.12), transparent 28rem),
    var(--page-bg);
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(20px, 6vw, 72px);
}

.legal-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  transition: color 180ms ease;
}

.legal-back:hover,
.legal-back:focus-visible {
  color: var(--accent);
}

.legal-main {
  padding: clamp(44px, 8vw, 96px) clamp(20px, 6vw, 72px) clamp(72px, 10vw, 128px);
}

.legal-content {
  width: min(860px, 100%);
  margin-inline: auto;
}

.legal-content h1 {
  margin-bottom: clamp(38px, 6vw, 70px);
  font-size: clamp(42px, 6vw, 76px);
}

.legal-content section {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.legal-content h2 {
  margin-bottom: 12px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
}

.legal-content p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
}

.legal-content ul {
  margin: 14px 0 0;
  padding-left: 22px;
  color: var(--muted);
  font-size: 18px;
}

.legal-content li + li {
  margin-top: 8px;
}

.legal-page .container {
  width: min(900px, 100%);
  margin-inline: auto;
  padding: clamp(44px, 8vw, 92px) clamp(20px, 6vw, 72px) clamp(72px, 10vw, 128px);
}

.legal-page h1 {
  max-width: 980px;
  margin-bottom: 14px;
  color: var(--text);
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.04;
  font-weight: 620;
}

.legal-page .subtitle {
  max-width: 860px;
  margin-bottom: clamp(42px, 6vw, 68px);
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
}

.legal-page .version-badge,
.legal-page .legal-ref,
.legal-page .law-ref {
  color: var(--subtle);
  font-size: 14px;
}

.legal-page .back-link {
  position: fixed;
  top: 24px;
  left: clamp(20px, 4vw, 48px);
  z-index: 20;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  min-height: 44px;
  padding: 0 16px;
  background: rgba(7, 11, 18, 0.82);
  backdrop-filter: blur(14px);
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: border-color 180ms ease, color 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.legal-page.is-back-visible .back-link,
.legal-page .back-link:focus-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.legal-page .back-link:hover,
.legal-page .back-link:focus-visible {
  border-color: rgba(240, 97, 80, 0.42);
  color: var(--accent);
}

.legal-page h2 {
  margin: clamp(46px, 7vw, 72px) 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: clamp(23px, 3vw, 34px);
  line-height: 1.1;
  font-weight: 620;
}

.legal-page .section-group h2 {
  margin-top: 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.9px;
}

.legal-page h3 {
  margin: 28px 0 10px;
  color: var(--text);
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.legal-page p,
.legal-page li,
.legal-page td {
  color: var(--muted);
}

.legal-page p {
  margin-bottom: 14px;
  font-size: 17px;
}

.legal-page ul,
.legal-page ol {
  margin: 12px 0 18px;
  padding-left: 22px;
  color: var(--muted);
  font-size: 17px;
}

.legal-page li + li {
  margin-top: 8px;
}

.legal-page a {
  color: var(--accent);
  text-decoration: none;
}

.legal-page a:hover,
.legal-page a:focus-visible {
  text-decoration: underline;
}

.legal-page .block,
.legal-page .toc,
.legal-page .warning-box,
.legal-page .check-box,
.legal-page .neutral-box,
.legal-page .highlight-box,
.legal-page .big-disclaimer {
  margin: 18px 0 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(20px, 3vw, 30px);
  background: rgba(255, 255, 255, 0.035);
}

.legal-page .section-group {
  margin-bottom: 34px;
}

.legal-page .warning-box,
.legal-page .big-disclaimer {
  border-color: rgba(240, 97, 80, 0.38);
  background: rgba(240, 97, 80, 0.08);
}

.legal-page .check-box {
  border-color: rgba(118, 184, 132, 0.35);
  background: rgba(77, 141, 94, 0.08);
}

.legal-page .neutral-box,
.legal-page .highlight-box {
  border-color: rgba(137, 147, 163, 0.28);
  background: rgba(137, 147, 163, 0.06);
}

.legal-page .toc h3 {
  margin-top: 0;
  color: var(--accent);
}

.legal-page table {
  display: block;
  width: 100%;
  margin: 18px 0 26px;
  overflow-x: auto;
  border-collapse: collapse;
  color: var(--muted);
  font-size: 15px;
}

.legal-page th,
.legal-page td {
  min-width: 180px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.legal-page th {
  color: var(--text);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.legal-page .tag,
.legal-page .placeholder {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-family: inherit;
  font-size: 13px;
}

.legal-page .tag-ch {
  border-color: rgba(118, 184, 132, 0.35);
  color: #95d5a3;
}

.legal-page .tag-eu {
  border-color: rgba(137, 147, 220, 0.35);
  color: #aeb7ff;
}

.legal-page .tag-us {
  border-color: rgba(240, 97, 80, 0.35);
  color: var(--accent);
}

.legal-page hr {
  height: 1px;
  margin: 52px 0;
  border: 0;
  background: var(--line);
}

.legal-page .disclaimer-summary {
  margin-top: 48px;
}

.legal-page .legal-footnote {
  margin-top: 48px;
  color: var(--subtle);
  font-size: 13px;
}

.legal-page .legal-spaced {
  margin-top: 16px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 560ms ease, transform 560ms ease;
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid rgba(240, 97, 80, 0.8);
  outline-offset: 4px;
}

@media (max-width: 820px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding-top: 124px;
  }

  .section-grid,
  .section-heading,
  .governance-layout,
  .pillar-grid {
    grid-template-columns: 1fr;
  }

  .pillar {
    min-height: auto;
  }

  .pillar-index {
    margin-bottom: 16px;
  }

}

@media (max-width: 520px) {
  .legal-page .container {
    padding-top: 44px;
  }

  .legal-page .back-link {
    top: 14px;
    left: 16px;
    min-height: 40px;
    padding-inline: 14px;
    font-size: 13px;
  }

  .brand-name {
    font-size: 19px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}

@media (min-width: 821px) {
  .legal-page .back-link {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-snap-type: none;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}
