:root {
  color-scheme: dark;
  --background: #050505;
  --surface: #0b0b0c;
  --text: #f5f5f5;
  --muted: #a8a8ad;
  --line: rgba(255, 255, 255, 0.14);
  --accent: #ffffff;
  --page-width: 1180px;
  --reading-width: 760px;
  font-family: Arial, Helvetica, sans-serif;
  font-synthesis: none;
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
}

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

body {
  min-width: 320px;
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
}

body.privacy { --accent: #73d6ff; }
body.terms { --accent: #ff7a72; }
body.cookies { --accent: #8ee3a1; }
body.imprint { --accent: #f5c96a; }
body.disclaimer { --accent: #df9bff; }

a {
  color: inherit;
}

a:hover {
  color: var(--accent);
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 9px 12px;
  background: #fff;
  color: #000;
  font-weight: 700;
  transform: translateY(-160%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 5, 5, 0.94);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(calc(100% - 40px), var(--page-width));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  text-decoration: none;
}

.brand img {
  display: block;
  width: auto;
  height: 38px;
  max-width: min(250px, 58vw);
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.home-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #d6d6da;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.home-link::before {
  content: "\2190";
  font-size: 1.1rem;
}

.legal-nav {
  border-bottom: 1px solid var(--line);
  background: #080809;
}

.legal-nav-inner {
  width: min(calc(100% - 40px), var(--page-width));
  margin: 0 auto;
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.legal-nav a {
  position: relative;
  flex: 0 0 auto;
  padding: 15px 0 14px;
  color: #9c9ca3;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.legal-nav a[aria-current="page"] {
  color: #fff;
}

.legal-nav a[aria-current="page"]::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--accent);
  content: "";
}

.legal-hero {
  width: min(calc(100% - 40px), var(--page-width));
  margin: 0 auto;
  padding: 86px 0 70px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 28px;
  height: 2px;
  background: var(--accent);
  content: "";
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  max-width: 900px;
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 3.5vw, 2.875rem);
  line-height: 0.98;
  font-weight: 800;
}

.hero-summary {
  max-width: 760px;
  margin: 30px 0 0;
  color: #bebec4;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.7;
}

.hero-meta {
  margin: 26px 0 0;
  color: #77777e;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.legal-layout {
  width: min(calc(100% - 40px), var(--page-width));
  margin: 0 auto;
  padding: 56px 0 100px;
  display: grid;
  grid-template-columns: minmax(170px, 240px) minmax(0, var(--reading-width));
  justify-content: space-between;
  gap: 72px;
}

.contents {
  align-self: start;
  position: sticky;
  top: 132px;
}

.contents-title {
  margin: 0 0 14px;
  color: #6f6f75;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.contents ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.contents a {
  display: block;
  color: #a5a5aa;
  font-size: 0.78rem;
  line-height: 1.35;
  text-decoration: none;
}

.legal-copy {
  min-width: 0;
}

.legal-copy section {
  padding: 0 0 42px;
  scroll-margin-top: 144px;
}

.legal-copy section + section {
  padding-top: 42px;
  border-top: 1px solid var(--line);
}

.legal-copy h2 {
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  line-height: 1.2;
}

.legal-copy h3 {
  margin: 28px 0 10px;
  color: #ececf0;
  font-size: 1rem;
}

.legal-copy p,
.legal-copy li,
.contact-block {
  color: #b9b9bf;
}

.legal-copy p {
  margin: 0 0 18px;
}

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

.legal-copy ul,
.legal-copy ol {
  margin: 16px 0 20px;
  padding-left: 22px;
}

.legal-copy li + li {
  margin-top: 10px;
}

.legal-copy strong {
  color: #f3f3f4;
}

.legal-copy a {
  color: #fff;
  text-decoration-color: color-mix(in srgb, var(--accent) 68%, transparent);
  text-underline-offset: 4px;
}

.notice {
  margin: 6px 0 22px;
  padding: 16px 18px;
  border-left: 2px solid var(--accent);
  background: var(--surface);
  color: #d5d5d8;
}

.data-table {
  width: 100%;
  margin: 22px 0;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.data-table th,
.data-table td {
  padding: 14px 12px;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  color: #fff;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.data-table td {
  color: #b9b9bf;
}

.entity {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.entity:first-of-type {
  border-top: 0;
}

.entity-name {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-size: 1.05rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #080809;
}

.footer-inner {
  width: min(calc(100% - 40px), var(--page-width));
  margin: 0 auto;
  padding: 36px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-copy {
  margin: 0;
  color: #74747a;
  font-size: 0.72rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.footer-links a {
  color: #a6a6ac;
  font-size: 0.72rem;
  text-decoration: none;
}

@media (max-width: 820px) {
  .legal-hero {
    padding: 64px 0 54px;
  }

  .legal-layout {
    display: block;
    padding-top: 32px;
  }

  .contents {
    position: static;
    margin-bottom: 46px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--line);
  }

  .contents ol {
    display: flex;
    gap: 10px 18px;
    overflow-x: auto;
  }

  .contents li,
  .contents li + li {
    flex: 0 0 auto;
    margin: 0;
  }

  .contents a {
    white-space: nowrap;
  }

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

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .header-inner,
  .legal-nav-inner,
  .legal-hero,
  .legal-layout,
  .footer-inner {
    width: min(calc(100% - 28px), var(--page-width));
  }

  .header-inner {
    min-height: 64px;
  }

  .brand img {
    height: 30px;
  }

  .home-link {
    width: 34px;
    height: 34px;
    justify-content: center;
    overflow: hidden;
    color: transparent;
  }

  .home-link::before {
    color: #fff;
  }

  .legal-nav-inner {
    gap: 20px;
  }

  .legal-hero {
    padding: 48px 0 44px;
  }

  h1 {
    font-size: clamp(2rem, 8vw, 2.125rem);
  }

  .hero-summary {
    margin-top: 24px;
  }

  .legal-layout {
    padding-bottom: 72px;
  }

  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table th,
  .data-table td {
    display: block;
    width: 100%;
  }

  .data-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .data-table tr {
    padding: 12px 0;
    border-top: 1px solid var(--line);
  }

  .data-table th,
  .data-table td {
    padding: 4px 0;
    border: 0;
  }

  .data-table td:first-child {
    color: #fff;
    font-weight: 700;
  }
}

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