* {
  box-sizing: border-box;
}

:root {
  --bg: #18181a;
  --panel: #212122;
  --panel-soft: rgba(255, 255, 255, 0.035);
  --panel-border: rgba(255, 255, 255, 0.08);
  --text: #dadada;
  --muted: #9a9a9a;
  --muted-dark: #6f6f71;
  --accent: #ffe200;
  --accent-dark: #b5a100;
  --line: rgba(255, 255, 255, 0.1);
  --max: 1180px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Gotham Pro", Montserrat, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 226, 0, 0.1), transparent 32rem),
    radial-gradient(circle at 86% 18%, rgba(255, 255, 255, 0.055), transparent 28rem),
    #18181a;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
}

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

.site-shell {
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100vw;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(24, 24, 26, 0.84);
  backdrop-filter: blur(14px);
}

.topbar__inner {
  width: min(var(--max), calc(100% - 48px));
  max-width: 100%;
  min-width: 0;
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
}

.topbar__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  max-width: 100%;
}

.brand img {
  width: 126px;
  height: auto;
  display: block;
}

.brand__label {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.legal-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 100%;
  min-width: 0;
}

.legal-nav__link,
.legal-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: #8a8a8a;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.18s ease, background 0.18s ease;
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  text-align: center;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.legal-nav__link:hover,
.legal-nav__link[aria-current="page"],
.legal-nav a:hover,
.legal-nav a[aria-current="page"] {
  color: var(--accent);
  background: #212122;
}

.legal-lang {
  position: relative;
  min-width: 0;
}

.legal-lang .dropdown {
  position: relative;
}

.legal-lang .onlyMobile {
  display: none !important;
}

.legal-lang .mobileHidden {
  display: block !important;
}

.legal-lang .floatLangMenu {
  z-index: 20;
}

.page-hero {
  width: min(var(--max), calc(100% - 48px));
  max-width: 100%;
  min-width: 0;
  margin: 0 auto;
  padding: 74px 0 36px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
}

h1 {
  max-width: 860px;
  margin: 0;
  color: var(--text);
  font-size: 54px;
  line-height: 1.18;
  font-weight: 500;
  text-shadow: 0 2px 1px rgba(0, 0, 0, 0.5);
}

.hero-copy {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--panel-border);
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 12px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.layout {
  width: min(var(--max), calc(100% - 48px));
  max-width: 100%;
  min-width: 0;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 36px;
  align-items: start;
  padding: 20px 0 92px;
}

.legal-doc {
  min-width: 0;
  padding: 42px;
  border: 1px solid var(--panel-border);
  border-radius: 13px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.018));
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.28);
}

.legal-doc h2,
.legal-doc h3 {
  scroll-margin-top: 108px;
}

.legal-doc h2 {
  margin: 54px 0 18px;
  color: var(--accent);
  font-size: 30px;
  line-height: 1.25;
  font-weight: 500;
}

.legal-doc h2:first-child {
  margin-top: 0;
}

.legal-doc h3 {
  margin: 36px 0 12px;
  color: var(--text);
  font-size: 20px;
  line-height: 1.35;
  font-weight: 500;
}

.legal-doc p {
  margin: 0 0 16px;
  color: #b7b7b7;
  font-size: 15.5px;
  line-height: 1.76;
  overflow-wrap: anywhere;
}

.legal-doc strong {
  color: #eeeeee;
  font-weight: 600;
}

.legal-doc .doc-title {
  display: none;
}

.legal-doc hr {
  height: 1px;
  border: 0;
  margin: 36px 0;
  background: var(--line);
}

.toc {
  position: sticky;
  top: 104px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  padding: 20px;
  border: 1px solid var(--panel-border);
  border-radius: 13px;
  background: rgba(33, 33, 34, 0.76);
  backdrop-filter: blur(12px);
}

.toc__title {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}

.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.toc a {
  display: block;
  padding: 7px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

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

.doc-grid {
  width: min(var(--max), calc(100% - 48px));
  max-width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 18px 0 100px;
}

.doc-card {
  min-height: 212px;
  padding: 28px;
  border: 1px solid var(--panel-border);
  border-radius: 13px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.018));
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.doc-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 226, 0, 0.42);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
}

.doc-card__type {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}

.doc-card h2 {
  margin: 0 0 16px;
  color: var(--text);
  font-size: 28px;
  line-height: 1.25;
  font-weight: 500;
}

.doc-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(24, 24, 26, 0.72);
}

.footer__inner {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  color: #515152;
  font-size: 13px;
}

.footer__links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer__links a {
  color: #8a8a8a;
}

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

@media (max-width: 980px) {
  .topbar__inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 0;
  }

  .legal-nav {
    justify-content: flex-start;
  }

  .page-hero {
    padding-top: 48px;
  }

  h1 {
    font-size: 42px;
  }

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

  .toc {
    position: static;
    order: -1;
  }

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

@media (max-width: 680px) {
  .topbar__inner,
  .page-hero,
  .layout,
  .doc-grid,
  .footer__inner {
    width: min(var(--max), calc(100% - 28px));
  }

  .brand__label {
    display: none;
  }

  .legal-nav__link {
    justify-content: center;
    min-height: 34px;
    padding: 0 10px;
    font-size: 12px;
  }

  .legal-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    min-width: 0;
    align-self: stretch;
    overflow: hidden;
  }

  h1 {
    font-size: 34px;
  }

  .hero-copy {
    font-size: 15px;
  }

  .legal-doc {
    padding: 26px 18px;
    border-radius: 10px;
  }

  .legal-doc h2 {
    font-size: 24px;
    margin-top: 42px;
  }

  .legal-doc h3 {
    font-size: 18px;
  }

  .legal-doc p {
    font-size: 14.5px;
    line-height: 1.7;
  }

  .toc ol,
  .doc-grid {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 28px 0;
  }
}

@media (max-width: 768px) {
  .topbar__inner {
    min-height: 78px;
    align-items: center;
    flex-direction: row;
    padding: 0;
  }

  .topbar__actions {
    justify-content: flex-end;
  }

  .legal-nav {
    display: none;
  }

  .legal-lang .dropdown {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
  }

  .legal-lang .onlyMobile {
    display: block !important;
  }

  .legal-lang .mobileHidden {
    display: none !important;
  }
}

@media (max-width: 1100px) {
  .topbar__inner {
    min-height: 78px;
    align-items: center;
    flex-direction: row;
    padding: 0;
  }

  .topbar__actions {
    margin-left: auto;
  }

  .legal-nav {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .legal-lang .dropdown.onlyMobile {
    display: block !important;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
  }

  .legal-lang .dropdown.mobileHidden {
    display: none !important;
  }
}
