:root {
  color-scheme: dark;
  --bg: #07080b;
  --surface: rgba(255, 255, 255, 0.065);
  --surface-subtle: rgba(255, 255, 255, 0.038);
  --border: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.22);
  --text: #f7f8fb;
  --muted: #a9afbc;
  --soft: #d6d9e2;
  --red: #ff173d;
  --cyan: #3bd8e8;
  --shadow: 0 28px 88px rgba(0, 0, 0, 0.42);
  --radius: 8px;
  --max-width: 1180px;
  --header-height: 80px;
  --font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  background: linear-gradient(180deg, #08090d 0%, var(--bg) 42%, #0b0e14 100%);
  color: var(--text);
  font-family: var(--font-family);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

.container {
  width: min(100% - 40px, var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  min-height: var(--header-height);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 8, 11, 0.96);
}

.header-inner,
.brand {
  display: flex;
  align-items: center;
}

.header-inner {
  min-height: var(--header-height);
  justify-content: space-between;
  gap: 24px;
}

.brand {
  gap: 12px;
  font-size: 1rem;
  font-weight: 750;
}

.brand img {
  width: 46px;
  height: 46px;
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(255, 23, 61, 0.18);
}

.section-number {
  color: var(--red);
  font-size: 0.75rem;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-language {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 12px;
  color: var(--soft);
  font-size: 0.9rem;
  font-weight: 700;
}

.legal-language:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.legal-hero {
  padding: clamp(58px, 7vw, 88px) 0 clamp(34px, 5vw, 56px);
}

.legal-heading {
  max-width: 820px;
}

.legal-heading h1 {
  margin: 12px 0 18px;
  font-size: clamp(2.45rem, 6vw, 4.7rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.legal-heading > p {
  max-width: 720px;
  color: var(--soft);
  font-size: clamp(1rem, 2vw, 1.15rem);
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.9rem;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(190px, 0.28fr) minmax(0, 0.72fr);
  align-items: start;
  gap: clamp(32px, 6vw, 82px);
  padding-bottom: clamp(76px, 9vw, 112px);
}

.legal-toc {
  position: sticky;
  top: calc(var(--header-height) + 28px);
  display: grid;
  gap: 8px;
  border-left: 2px solid var(--border);
  padding-left: 18px;
}

.legal-toc strong {
  margin-bottom: 4px;
}

.legal-toc a {
  color: var(--muted);
  font-size: 0.92rem;
}

.legal-toc a:hover,
.footer-links a:hover,
.privacy-preferences-link:hover,
.footer-contact a:hover {
  color: var(--red);
}

.legal-content {
  max-width: 800px;
  min-width: 0;
}

.legal-content section {
  scroll-margin-top: calc(var(--header-height) + 28px);
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.legal-content section:first-child {
  border-top: 0;
  padding-top: 0;
}

.legal-content h2 {
  margin-bottom: 14px;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  line-height: 1.2;
}

.legal-content h3 {
  margin: 22px 0 8px;
  font-size: 1.05rem;
}

.legal-content p,
.legal-content li {
  color: var(--soft);
}

.legal-content p + p {
  margin-top: 12px;
}

.legal-content ul {
  display: grid;
  gap: 10px;
  margin: 14px 0 0 20px;
}

.legal-content a,
.privacy-banner__copy a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.legal-note {
  border: 1px solid var(--border);
  border-left: 3px solid var(--red);
  border-radius: var(--radius);
  padding: 18px;
  background: var(--surface-subtle);
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 34px 0;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.7fr 0.8fr;
  align-items: center;
  gap: 24px;
}

.site-footer strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
}

.site-footer p {
  max-width: 640px;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  font-size: 0.92rem;
}

.footer-links a,
.privacy-preferences-link,
.footer-contact a {
  color: var(--text);
  font-weight: 700;
}

.privacy-preferences-link {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.footer-contact {
  display: grid;
  justify-items: end;
  gap: 8px;
  font-size: 0.92rem;
}

.privacy-banner {
  position: fixed;
  z-index: 40;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  left: max(16px, env(safe-area-inset-left));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  width: min(760px, calc(100% - 32px));
  margin-left: auto;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 18px;
  background: rgba(13, 16, 23, 0.98);
  box-shadow: var(--shadow);
  color: var(--text);
}

.privacy-banner[hidden] {
  display: none;
}

.privacy-banner__copy strong {
  display: block;
  margin-bottom: 5px;
}

.privacy-banner__copy p {
  color: var(--soft);
  font-size: 0.92rem;
}

.privacy-banner__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.privacy-banner__actions button {
  min-height: 42px;
  border-radius: var(--radius);
  padding: 10px 14px;
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 750;
}

.privacy-banner__accept {
  border: 1px solid var(--red);
  background: var(--red);
  color: #fff;
}

.privacy-banner__accept:hover {
  border-color: #ff4969;
  background: #ff4969;
}

.privacy-banner__reject {
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
}

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

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

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-contact {
    justify-items: start;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 72px;
  }

  .header-inner {
    gap: 14px;
    padding: 10px 0;
  }

  .brand span {
    display: none;
  }

  .legal-layout,
  .privacy-banner {
    grid-template-columns: 1fr;
  }

  .legal-toc {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .legal-toc strong {
    grid-column: 1 / -1;
  }

  .privacy-banner {
    gap: 14px;
    padding: 16px;
  }

  .privacy-banner__actions {
    justify-content: stretch;
  }

  .privacy-banner__actions button {
    flex: 1 1 150px;
  }
}

@media (max-width: 430px) {
  .container {
    width: min(100% - 24px, var(--max-width));
  }

  .legal-heading h1 {
    overflow-wrap: anywhere;
  }
}
