@font-face {
  font-family: 'Archivo';
  src: url('/fonts/archivo-800-latin.woff2') format('woff2');
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: 'Archivo';
  src: url('/fonts/archivo-900-latin.woff2') format('woff2');
  font-weight: 900;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Sans';
  src: url('/fonts/ibm-plex-sans-400-latin.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Sans';
  src: url('/fonts/ibm-plex-sans-600-latin.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/fonts/ibm-plex-mono-600-latin.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0a0b0d;
  --surface: #121316;
  --surface-2: #1a1c20;
  --surface-3: #23262b;
  --fg: #f5f7f4;
  --muted: #a4aaa5;
  --border: rgba(255, 255, 255, 0.13);
  --accent: #c9f03c;
  --accent-2: #ff6a3d;
  --ink: #0a0b0d;
  --nav: rgba(10, 11, 13, 0.84);
  --shadow: rgba(0, 0, 0, 0.36);
  color-scheme: dark;
  font-synthesis: none;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
}

:root[data-mode='light'] {
  --bg: #efeee9;
  --surface: #fff;
  --surface-2: #f7f6f1;
  --surface-3: #e7e7df;
  --fg: #111214;
  --muted: #5d615c;
  --border: rgba(15, 16, 18, 0.14);
  --accent: #85d420;
  --accent-2: #e8551f;
  --ink: #10120e;
  --nav: rgba(239, 238, 233, 0.86);
  --shadow: rgba(34, 36, 31, 0.14);
  color-scheme: light;
}

html {
  overflow-x: clip;
}

body {
  min-width: 0;
  min-height: 100vh;
  overflow-x: clip;
  background:
    radial-gradient(circle at 92% 9%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 24rem),
    var(--bg);
  color: var(--fg);
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  transform: translateY(-160%);
  border-radius: 8px;
  background: var(--accent);
  color: var(--ink);
  padding: 12px 16px;
  font: 600 12px/1 'IBM Plex Mono', monospace;
  text-decoration: none;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  border-bottom: 1px solid var(--border);
  background: var(--nav);
  padding: 12px clamp(18px, 4vw, 56px);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: max-content;
  color: var(--fg);
  font: 800 19px/1 'Archivo', sans-serif;
  letter-spacing: 0.01em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand img {
  border-radius: 8px;
}

.topbar nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2vw, 28px);
}

.topbar nav a {
  position: relative;
  color: var(--muted);
  font: 600 11px/1 'IBM Plex Mono', monospace;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.topbar nav a::after {
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 2px;
  background: var(--accent);
  content: '';
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 160ms ease, transform 160ms ease;
}

.topbar nav a[aria-current='page'],
.topbar nav a:hover {
  color: var(--fg);
}

.topbar nav a[aria-current='page']::after,
.topbar nav a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.theme-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: 500 11px/1 'IBM Plex Mono', monospace;
}

.nav-controls {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(10px, 1.6vw, 18px);
}

.language-control {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.tw-langbtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  padding: 8px 12px;
  cursor: pointer;
  font: 600 11px/1 'IBM Plex Mono', monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: border-color 140ms ease, color 140ms ease;
}

.tw-langbtn svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.tw-langbtn:hover,
.tw-langbtn[aria-expanded='true'] {
  border-color: var(--muted);
  color: var(--fg);
}

.language-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 180;
  display: flex;
  width: 208px;
  flex-direction: column;
  gap: 2px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  padding: 6px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

.language-menu[hidden] {
  display: none;
}

.tw-langopt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--fg);
  padding: 9px 10px;
  cursor: pointer;
  font: 400 13.5px/1.2 'IBM Plex Sans', sans-serif;
  text-align: left;
}

.tw-langopt:hover {
  background: var(--surface-2);
}

.tw-langopt strong {
  font-weight: 600;
}

.tw-langopt small {
  color: var(--muted);
  font: inherit;
}

.language-check {
  color: var(--accent);
  font-weight: 700;
  opacity: 0;
}

.tw-langopt[aria-selected='true'] .language-check {
  opacity: 1;
}

.nav-cta {
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink, var(--ink));
  padding: 13px 17px;
  font: 700 11px/1 'IBM Plex Mono', monospace;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--fg);
  cursor: pointer;
}

.nav-menu-button {
  display: none;
  justify-self: end;
}

.tw-burger-icon {
  position: relative;
  display: block;
  width: 20px;
  height: 16px;
}

.tw-burger-icon > span {
  position: absolute;
  left: 50%;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: translateX(-50%);
  transition: transform 300ms cubic-bezier(0.4, 0.1, 0.2, 1), opacity 200ms ease, width 300ms ease;
}

.tw-burger-icon > span:nth-child(1) {
  top: 3px;
  width: 20px;
}

.tw-burger-icon > span:nth-child(2) {
  top: 7px;
  width: 16px;
}

.tw-burger-icon > span:nth-child(3) {
  top: 11px;
  width: 12px;
}

.tw-burger-icon.is-open > span:nth-child(1) {
  transform: translate(-50%, 4px) rotate(45deg);
}

.tw-burger-icon.is-open > span:nth-child(2) {
  opacity: 0;
  transform: translateX(-50%) scaleX(0);
}

.tw-burger-icon.is-open > span:nth-child(3) {
  width: 20px;
  transform: translate(-50%, -4px) rotate(-45deg);
}

.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 150;
  border: 0;
  background: rgba(0, 0, 0, 0.62);
  cursor: pointer;
  animation: fade-in 180ms ease both;
}

.menu-backdrop[hidden],
.mobile-menu[hidden] {
  display: none;
}

.mobile-menu {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 160;
  display: flex;
  width: min(380px, 90vw);
  flex-direction: column;
  border-left: 1px solid var(--border);
  background: var(--surface);
  padding: 18px;
  box-shadow: -30px 0 80px rgba(0, 0, 0, 0.4);
  animation: slide-in 220ms ease both;
}

.mobile-menu__head,
.mobile-menu__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-menu__links {
  margin-top: 30px;
}

.mobile-menu__links a {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--border);
  color: var(--fg);
  padding: 17px 4px;
  font: 800 18px/1.15 'Archivo', sans-serif;
  text-decoration: none;
  text-transform: uppercase;
}

.mobile-menu__links a:last-child {
  border-bottom: 1px solid var(--border);
}

.mobile-menu__links a[aria-current='page'] strong {
  color: var(--accent);
}

.mobile-menu__links span {
  color: var(--muted);
  font: 600 11px/1 'IBM Plex Mono', monospace;
}

.mobile-menu__links strong {
  font: inherit;
}

.mobile-menu__links b {
  color: var(--accent);
}

.mobile-menu__foot {
  display: grid;
  gap: 18px;
  margin-top: auto;
}

.mobile-menu__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  text-align: center;
}

.mobile-menu__controls {
  gap: 10px;
}

.mobile-menu .language-menu {
  top: auto;
  bottom: calc(100% + 8px);
}

body.mobile-menu-open {
  overflow: hidden;
}

.theme-track {
  position: relative;
  width: 44px;
  height: 26px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
}

.theme-track::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 2px 7px var(--shadow);
  content: '';
  transition: transform 180ms ease;
}

:root[data-mode='light'] .theme-track::after {
  transform: translateX(18px);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: start;
  width: min(1240px, calc(100% - 32px));
  overflow: hidden;
  margin: clamp(22px, 4vw, 54px) auto 0;
  border: 1px solid var(--border);
  border-radius: 30px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--surface-2) 76%, transparent), var(--surface)),
    var(--surface);
  padding: clamp(52px, 8vw, 104px) clamp(24px, 6vw, 76px);
  box-shadow: 0 28px 80px color-mix(in srgb, var(--shadow) 74%, transparent);
  animation: hero-enter 620ms cubic-bezier(0.2, 0.78, 0.24, 1) both;
}

.hero::before,
.hero::after {
  position: absolute;
  width: 460px;
  border-top: 3px solid var(--accent-2);
  content: '';
  opacity: 0.36;
  pointer-events: none;
  transform: rotate(-24deg);
}

.hero::before {
  top: 20%;
  left: -180px;
}

.hero::after {
  bottom: 16%;
  left: -120px;
  border-color: var(--accent);
}

.hero > * {
  position: relative;
  z-index: 1;
}

.badge,
.section-label {
  display: inline-block;
  color: var(--accent);
  font: 600 10px/1 'IBM Plex Mono', monospace;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.badge {
  grid-column: 1;
  width: max-content;
  max-width: 100%;
  border-radius: 6px;
  background: var(--accent);
  color: var(--ink);
  padding: 9px 12px;
}

.hero h1 {
  grid-column: 1;
  max-width: 12ch;
  margin-top: 22px;
  color: var(--fg);
  font: 900 clamp(44px, 6.5vw, 82px)/0.9 'Archivo', sans-serif;
  hyphens: auto;
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.hero h1 em {
  color: var(--accent);
  font-style: italic;
}

.hero p {
  grid-column: 1;
  max-width: 64ch;
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(15px, 1.5vw, 18px);
}

.content {
  counter-reset: legal-section;
  display: grid;
  gap: 16px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(60px, 8vw, 104px) 0;
}

.section {
  position: relative;
  counter-increment: legal-section;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  padding: clamp(30px, 5vw, 54px) clamp(28px, 5vw, 56px) clamp(30px, 5vw, 54px) clamp(210px, 23vw, 280px);
  box-shadow: 0 18px 50px color-mix(in srgb, var(--shadow) 46%, transparent);
  animation: section-enter 520ms cubic-bezier(0.2, 0.78, 0.24, 1) both;
}

.section:nth-child(2) { animation-delay: 60ms; }
.section:nth-child(3) { animation-delay: 120ms; }
.section:nth-child(4) { animation-delay: 180ms; }
.section:nth-child(5) { animation-delay: 240ms; }

.section::after {
  position: absolute;
  right: 20px;
  bottom: -22px;
  color: var(--surface-3);
  content: counter(legal-section, decimal-leading-zero);
  font: 900 clamp(72px, 11vw, 136px)/1 'Archivo', sans-serif;
  pointer-events: none;
}

.section-label {
  position: absolute;
  top: clamp(38px, 5vw, 60px);
  left: clamp(28px, 5vw, 56px);
  width: 130px;
}

.section-label::before {
  display: block;
  width: 30px;
  margin-bottom: 16px;
  border-top: 3px solid var(--accent);
  content: '';
}

.section h2,
.section p,
.section ul,
.section ol,
.section .callout,
.section .faq,
.section .contact-button {
  position: relative;
  z-index: 1;
}

.section h2 {
  margin-bottom: 18px;
  color: var(--fg);
  font: 900 clamp(25px, 3.6vw, 38px)/1.02 'Archivo', sans-serif;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.section p {
  max-width: 76ch;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 15px;
}

.section strong {
  color: var(--fg);
  font-weight: 600;
}

.section a:not(.contact-button) {
  color: var(--accent);
  text-underline-offset: 3px;
}

.section ul,
.section ol {
  display: grid;
  gap: 11px;
  margin: 18px 0 20px;
  list-style: none;
}

.section li {
  position: relative;
  color: var(--muted);
  padding-left: 30px;
  font-size: 14.5px;
}

.section ul li::before {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--accent);
  content: '✓';
  font-weight: 800;
}

.steps {
  counter-reset: step;
  gap: 12px !important;
}

.steps li {
  min-height: 52px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-2);
  padding: 15px 16px 15px 64px;
}

.steps li::before {
  position: absolute;
  top: 50%;
  left: 14px;
  display: grid;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--ink);
  content: counter(step, decimal-leading-zero);
  counter-increment: step;
  font: 600 10px/1 'IBM Plex Mono', monospace;
  place-items: center;
  transform: translateY(-50%);
}

.callout {
  margin: 22px 0;
  border: 1px solid color-mix(in srgb, var(--accent) 44%, var(--border));
  border-radius: 16px;
  background: color-mix(in srgb, var(--accent) 7%, var(--surface-2));
  padding: 22px 24px;
}

.callout.warning {
  border-color: color-mix(in srgb, var(--accent-2) 48%, var(--border));
  background: color-mix(in srgb, var(--accent-2) 7%, var(--surface-2));
}

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

.faq {
  overflow: hidden;
  margin-top: 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-2);
  padding: 0 20px;
}

.faq details {
  border-bottom: 1px solid var(--border);
  padding: 19px 0;
}

.faq details:last-child {
  border-bottom: 0;
}

.faq summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  color: var(--fg);
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  color: var(--accent);
  content: '+';
  font-size: 24px;
  line-height: 1;
  transition: transform 160ms ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq p {
  margin: 12px 34px 0 0;
  font-size: 14px;
}

.contact-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: var(--ink);
  padding: 15px 19px;
  font: 600 11px/1 'IBM Plex Mono', monospace;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.contact-button:hover {
  box-shadow: 0 12px 34px color-mix(in srgb, var(--accent) 20%, transparent);
  transform: translateY(-2px);
}

footer {
  display: grid;
  grid-template-columns: minmax(280px, 1.5fr) minmax(300px, 1fr);
  gap: 50px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: clamp(50px, 7vw, 76px) clamp(20px, 5vw, 64px) 28px;
}

.footer-brand p {
  max-width: 48ch;
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.footer-links > div {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-links b {
  margin-bottom: 5px;
  color: var(--fg);
  font: 700 10px/1 'IBM Plex Mono', monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-links a,
.footer-bottom {
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}

.footer-links a:hover,
.footer-bottom a:hover {
  color: var(--fg);
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
  font-family: 'IBM Plex Mono', monospace;
  line-height: 1.5;
}

.footer-bottom a {
  color: var(--fg);
  font-weight: 600;
  text-decoration: none;
}

.footer-bottom b {
  text-transform: uppercase;
}

@keyframes hero-enter {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

@keyframes section-enter {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
}

@keyframes fade-in {
  from { opacity: 0; }
}

@keyframes slide-in {
  from { transform: translateX(100%); }
}

@media (max-width: 1120px) {
  .topbar {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .topbar > nav,
  .topbar > .nav-controls {
    display: none;
  }

  .nav-menu-button {
    display: inline-flex;
  }
}

@media (max-width: 760px) {
  .hero {
    border-radius: 22px;
  }

  footer {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .footer-bottom {
    grid-column: 1;
    align-items: flex-start;
    flex-direction: column;
  }

  .hero h1,
  .hero p,
  .badge {
    grid-column: 1;
  }

  .section {
    padding: 88px 24px 30px;
  }

  .section-label {
    top: 28px;
    left: 24px;
    width: auto;
  }

  .section-label::before {
    display: inline-block;
    margin: 0 12px 3px 0;
  }

  .section::after {
    right: 12px;
    bottom: -12px;
    font-size: 82px;
  }
}

@media (max-width: 460px) {
  .nav-controls {
    gap: 8px;
  }

  .hero {
    width: calc(100% - 24px);
    padding: 42px 20px;
  }

  .hero h1 {
    font-size: clamp(38px, 12vw, 50px);
  }

  .content {
    width: calc(100% - 24px);
    padding-block: 50px;
  }

  .section {
    border-radius: 18px;
    padding-inline: 20px;
  }

  .faq {
    padding-inline: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Cookie and privacy notice. Mirrors the landing page component (src/styles.css)
   so the banner and dialog look identical across the site and the legal pages. */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 190;
  padding: 18px 24px;
  background: var(--nav);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--border);
  animation: cookie-up 0.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes cookie-up {
  from {
    transform: translateY(100%);
  }
}

.cookie-banner__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) auto;
  align-items: center;
  gap: 22px;
  width: min(1240px, 100%);
  margin: 0 auto;
}

.cookie-banner__title {
  margin: 0;
  font: 700 15px/1.3 'IBM Plex Sans', system-ui, sans-serif;
  color: var(--fg);
}

.cookie-banner__body {
  margin: 5px 0 0;
  font: 400 13px/1.55 'IBM Plex Sans', system-ui, sans-serif;
  color: var(--muted);
}

.cookie-switches {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cookie-switch-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.cookie-switch-card > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.cookie-switch-card b {
  font: 600 12.5px/1.3 'IBM Plex Sans', system-ui, sans-serif;
  color: var(--fg);
}

.cookie-switch-card span span {
  font: 400 11px/1.4 'IBM Plex Sans', system-ui, sans-serif;
  color: var(--muted);
}

.cookie-switch {
  position: relative;
  flex: 0 0 auto;
  width: 38px;
  height: 21px;
  margin-top: 1px;
  border-radius: 999px;
  background: var(--surface-3);
  transition: background 0.25s ease;
}

.cookie-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--fg);
  transition: transform 0.25s ease;
}

.cookie-switch.is-on,
.cookie-switch-input:checked + .cookie-switch {
  background: var(--accent);
}

.cookie-switch.is-on::after,
.cookie-switch-input:checked + .cookie-switch::after {
  background: var(--ink);
  transform: translateX(17px);
}

.cookie-switch.is-locked {
  opacity: 0.55;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.cookie-btn {
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--fg);
  font: 600 13px/1 'IBM Plex Sans', system-ui, sans-serif;
  white-space: nowrap;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.15s ease;
}

.cookie-btn:hover {
  border-color: var(--muted);
}

.cookie-btn:active {
  transform: scale(0.97);
}

.cookie-btn--primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--ink);
}

.cookie-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(10, 11, 13, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: cookie-fade 0.25s ease both;
}

@keyframes cookie-fade {
  from {
    opacity: 0;
  }
}

.cookie-dialog {
  display: flex;
  flex-direction: column;
  width: min(620px, 100%);
  max-height: min(85vh, 720px);
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 30px 70px -28px var(--shadow);
  overflow: hidden;
}

.cookie-dialog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
}

.cookie-dialog__head h2 {
  margin: 0;
  font: 700 17px/1.3 'IBM Plex Sans', system-ui, sans-serif;
  color: var(--fg);
}

.cookie-dialog__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 22px 24px;
  overflow-y: auto;
}

.cookie-dialog__body h3 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 7px;
  font: 700 14.5px/1.3 'IBM Plex Sans', system-ui, sans-serif;
  color: var(--fg);
}

.cookie-dialog__body p {
  margin: 0;
  font: 400 13.5px/1.65 'IBM Plex Sans', system-ui, sans-serif;
  color: var(--muted);
}

.cookie-badge {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--muted);
  font: 700 10.5px/1.4 'IBM Plex Mono', monospace;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.cookie-badge--on {
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  color: var(--fg);
}

.cookie-switch-row {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 12px;
  font: 600 12.5px/1 'IBM Plex Sans', system-ui, sans-serif;
  color: var(--muted);
  cursor: pointer;
}

.cookie-switch-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.cookie-switch-input:focus-visible + .cookie-switch {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.cookie-dialog__foot {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
}

.cookie-settings-link {
  border: none;
  background: none;
  padding: 0;
  color: var(--muted);
  font: 400 13px/1.4 'IBM Plex Sans', system-ui, sans-serif;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.cookie-settings-link:hover {
  color: var(--fg);
}

@media (max-width: 900px) {
  .cookie-banner__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .cookie-actions .cookie-btn {
    flex: 1;
  }
}

@media (max-width: 560px) {
  .cookie-banner {
    padding: 16px 18px;
  }

  .cookie-switches {
    grid-template-columns: 1fr;
  }

  .cookie-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .cookie-dialog {
    width: 100%;
    max-height: 92vh;
    border-radius: 20px 20px 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-banner,
  .cookie-overlay {
    animation: none;
  }
}
