@font-face {
  font-family: "Vice Title";
  src: url("/assets/packages/vice_design_system/assets/fonts/title/Kabouter.otf")
    format("opentype");
  font-display: swap;
  font-weight: 400;
}

:root {
  color-scheme: dark;
  --vc-canvas: #000000;
  --vc-surface: #ffffff;
  --vc-primary: #b3001b;
  --vc-primary-pressed: #630d24;
  --vc-card-surface: #181619;
  --vc-card-stroke: #322e26;
  --vc-text-secondary: #b1b1b1;
  --vc-text-muted: #8c888c;
  --vc-focus: #fff4ed;
  --vc-max-width: 760px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--vc-canvas);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 50% -20%, rgb(179 0 27 / 20%), transparent 38rem),
    var(--vc-canvas);
  color: var(--vc-surface);
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--vc-surface);
  text-underline-offset: 0.2em;
}

a:hover {
  color: #ffd8d0;
}

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

.skip-link {
  position: fixed;
  z-index: 10;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  background: var(--vc-surface);
  color: var(--vc-canvas);
  transform: translateY(-200%);
}

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

.site-header {
  position: sticky;
  z-index: 5;
  top: 0;
  border-bottom: 1px solid rgb(255 255 255 / 10%);
  background: rgb(0 0 0 / 88%);
  backdrop-filter: blur(16px);
}

.site-header__inner {
  display: flex;
  width: min(100% - 2rem, var(--vc-max-width));
  min-height: 72px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  color: var(--vc-surface);
  font-family: "Vice Title", ui-sans-serif, sans-serif;
  font-size: 2rem;
  line-height: 1;
  text-decoration: none;
}

.language-switcher {
  display: inline-flex;
  padding: 0.25rem;
  border: 1px solid var(--vc-card-stroke);
  border-radius: 999px;
  background: var(--vc-card-surface);
}

.language-switcher button {
  min-width: 44px;
  min-height: 40px;
  padding: 0.4rem 0.75rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--vc-text-secondary);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
}

.language-switcher button[aria-pressed="true"] {
  background: var(--vc-primary);
  color: var(--vc-surface);
}

.legal-shell {
  width: min(100% - 2rem, var(--vc-max-width));
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) 0 5rem;
}

.legal-heading {
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: #ffd8d0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--vc-surface);
  font-weight: 700;
  line-height: 1.2;
  text-wrap: balance;
}

h1 {
  max-width: 16ch;
  margin: 0;
  font-family: "Vice Title", ui-sans-serif, sans-serif;
  font-size: clamp(2.8rem, 9vw, 5.2rem);
  font-weight: 400;
  letter-spacing: 0.01em;
}

h2 {
  margin: 3.5rem 0 1rem;
  font-size: clamp(1.45rem, 4vw, 1.8rem);
}

h3 {
  margin: 2rem 0 0.75rem;
  font-size: 1.1rem;
}

.updated-at {
  margin: 1rem 0 0;
  color: var(--vc-text-muted);
  font-size: 0.9rem;
}

.legal-content p {
  margin: 0 0 1.15rem;
  color: #e8e5e8;
}

.legal-content ul,
.legal-content ol {
  margin: 0 0 1.35rem;
  padding-left: 1.4rem;
}

.legal-content li {
  margin: 0.5rem 0;
  padding-left: 0.25rem;
  color: #e8e5e8;
}

.legal-content strong {
  color: var(--vc-surface);
}

.legal-footer {
  display: flex;
  width: min(100% - 2rem, var(--vc-max-width));
  margin: 0 auto;
  padding: 2rem 0 3rem;
  border-top: 1px solid rgb(255 255 255 / 10%);
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--vc-text-muted);
  font-size: 0.85rem;
}

.legal-footer p {
  margin: 0;
}

.legal-footer__links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  text-align: right;
}

[hidden] {
  display: none !important;
}

@media (max-width: 540px) {
  body {
    font-size: 16px;
  }

  .site-header__inner,
  .legal-shell,
  .legal-footer {
    width: min(100% - 1.5rem, var(--vc-max-width));
  }

  .legal-shell {
    padding-top: 2.5rem;
  }

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

  .legal-footer__links {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.6rem;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media print {
  :root {
    color-scheme: light;
  }

  body {
    background: #ffffff;
    color: #000000;
    font-size: 11pt;
  }

  .site-header,
  .skip-link,
  .legal-footer {
    display: none;
  }

  .legal-shell {
    width: 100%;
    padding: 0;
  }

  h1,
  h2,
  h3,
  .legal-content p,
  .legal-content li,
  .legal-content strong,
  a {
    color: #000000;
  }

  a {
    text-decoration: none;
  }
}
