@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --text: #0b0b0b;
  --muted: #6b7280;
  --border: #e5e7eb;
  --link-underline: rgba(0, 0, 0, 0.3);
  --surface: #f6f4ef;
  --accent: #9b5f00;
  --container-max: 1000px;
  --content-max: 760px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0b;
    --text: #f5f5f5;
    --muted: #a5abb5;
    --border: #2b2b2b;
    --link-underline: rgba(255, 255, 255, 0.4);
    --surface: #171717;
    --accent: #ee9c24;
  }
}

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

html {
  color-scheme: light dark;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", sans-serif;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
  text-decoration-color: var(--link-underline);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: currentColor;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

main:focus {
  outline: none;
}

.container {
  width: min(calc(100% - 48px), var(--container-max));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 2000;
  top: 12px;
  left: 12px;
  transform: translateY(-150%);
  border-radius: 999px;
  padding: 10px 16px;
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
}

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

.navbar {
  position: sticky;
  z-index: 1000;
  top: 0;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
}

.navbar .container {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo a {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-decoration: none;
}

.legal-navigation {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.nav-links a[aria-current="page"] {
  font-weight: 750;
}

.language-link {
  color: var(--muted);
}

.hamburger {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.hamburger span {
  position: absolute;
  right: 9px;
  left: 9px;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hamburger span:nth-child(1) { top: 13px; }
.hamburger span:nth-child(2) { top: 21px; }
.hamburger span:nth-child(3) { top: 29px; }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

main.agb {
  padding: clamp(40px, 7vw, 88px) 0;
}

.content-box {
  width: min(calc(100% - 48px), var(--content-max));
  margin-inline: auto;
}

h1,
h2,
h3 {
  color: var(--text);
  line-height: 1.2;
}

h1 {
  margin: 0 0 28px;
  font-size: clamp(34px, 6vw, 54px);
  font-weight: 750;
  hyphens: auto;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}

h2 {
  margin: 42px 0 10px;
  font-size: clamp(22px, 3.2vw, 29px);
  font-weight: 720;
  letter-spacing: -0.02em;
}

h3 {
  margin: 28px 0 8px;
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 700;
}

p {
  margin: 12px 0 0;
}

ul {
  padding-left: 1.4em;
}

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

b,
strong {
  font-weight: 750;
}

.legal-email {
  white-space: nowrap;
}

footer {
  border-top: 1px solid var(--border);
  padding: 26px 0;
  background: var(--bg);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  font-size: 14px;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a[aria-current="page"] {
  text-decoration: underline;
}

.footer-content > p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.not-found {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 48px 24px;
}

.not-found-card {
  width: min(100%, 760px);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: clamp(28px, 6vw, 64px);
  background: var(--surface);
}

.not-found-code {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.not-found h1 {
  margin-bottom: 14px;
  font-size: clamp(46px, 10vw, 96px);
}

.not-found-secondary {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.not-found-secondary h2 {
  margin-top: 0;
}

.not-found-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.legal-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--text);
  border-radius: 999px;
  padding: 10px 18px;
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
  text-decoration: none;
}

.legal-button-secondary {
  background: transparent;
  color: var(--text);
}

@media (max-width: 900px) {
  .navbar .container {
    min-height: auto;
    align-items: flex-start;
    flex-direction: column;
    padding-block: 14px;
  }

  .legal-navigation,
  .nav-links {
    width: 100%;
  }

  .nav-links {
    align-items: flex-start;
    gap: 10px 20px;
    flex-wrap: wrap;
  }

  .js .navbar .container {
    min-height: 64px;
    align-items: center;
    flex-direction: row;
    padding-block: 0;
  }

  .js .legal-navigation {
    width: auto;
  }

  .js .hamburger {
    display: block;
  }

  .js .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    right: 0;
    left: 0;
    width: auto;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--border);
    padding: 10px 24px 18px;
    background: var(--bg);
  }

  .js .nav-links.is-open {
    display: flex;
  }

  .js .nav-links a {
    display: block;
    padding: 10px 0;
  }
}

@media (max-width: 560px) {
  .container,
  .content-box {
    width: min(calc(100% - 32px), var(--container-max));
  }

  .footer-content,
  .footer-links {
    align-items: flex-start;
    flex-direction: column;
  }

  .not-found-actions {
    align-items: stretch;
    flex-direction: column;
  }
}

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

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