:root {
  color-scheme: dark;
  --ink: #07080b;
  --panel: rgba(15, 16, 20, 0.9);
  --panel-strong: #111217;
  --line: rgba(214, 165, 54, 0.34);
  --line-soft: rgba(255, 255, 255, 0.08);
  --gold: #d6a536;
  --gold-light: #f4d685;
  --paper: #f5f0e5;
  --muted: #aaa69d;
  --red: #6e1217;
  --green: #72c994;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 280px;
  background:
    radial-gradient(circle at 50% -10%, rgba(109, 19, 23, 0.34), transparent 34rem),
    linear-gradient(180deg, #0b0c10 0%, var(--ink) 42%, #050608 100%);
  color: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--gold-light);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #fff0ba;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 8, 11, 0.84);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(calc(100% - 32px), var(--max));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--paper);
  text-decoration: none;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  border: 1px solid rgba(244, 214, 133, 0.58);
  box-shadow: 0 0 24px rgba(214, 165, 54, 0.16);
}

.brand-copy {
  display: grid;
  line-height: 1.08;
}

.brand-copy strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.04rem;
  letter-spacing: 0.08em;
}

.brand-copy small {
  margin-top: 5px;
  color: var(--gold);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a,
.language-toggle button {
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #c9c4b9;
  font: inherit;
  font-size: 0.84rem;
  text-decoration: none;
  cursor: pointer;
}

.nav-links a {
  padding: 10px 11px;
}

.nav-links a[aria-current="page"],
.nav-links a:hover {
  color: var(--paper);
  background: rgba(214, 165, 54, 0.1);
}

.language-toggle {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #0d0e12;
}

.language-toggle button {
  min-width: 38px;
  padding: 7px 9px;
  font-weight: 800;
}

.language-toggle button.is-active {
  background: linear-gradient(180deg, var(--gold-light), #a8730a);
  color: #181106;
}

main {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.hero {
  position: relative;
  padding: clamp(74px, 11vw, 138px) 0 70px;
  overflow: hidden;
}

.hero::after {
  position: absolute;
  top: 44px;
  right: 2%;
  width: min(38vw, 400px);
  aspect-ratio: 1;
  border-radius: 50%;
  content: "";
  opacity: 0.25;
  pointer-events: none;
  background: radial-gradient(circle, rgba(214, 165, 54, 0.27), transparent 68%);
  filter: blur(4px);
}

.eyebrow,
.document-kicker {
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.hero h1,
.document-hero h1 {
  max-width: 880px;
  margin: 14px 0 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.65rem, 8vw, 6.2rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero h1 span,
.document-hero h1 span {
  color: var(--gold-light);
}

.hero p {
  max-width: 690px;
  margin: 0;
  color: #c6c1b6;
  font-size: clamp(1rem, 2vw, 1.22rem);
}

.hero-meta {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-meta span,
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: #cfc8b9;
  font-size: 0.78rem;
}

.hero-meta span::before,
.status-chip::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  content: "";
  background: var(--gold);
  box-shadow: 0 0 12px rgba(214, 165, 54, 0.8);
}

.legal-grid {
  padding: 16px 0 92px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.legal-card {
  position: relative;
  min-height: 292px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.045), transparent 55%),
    var(--panel);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.22);
  transition: transform 180ms ease, border-color 180ms ease;
}

.legal-card:hover {
  transform: translateY(-4px);
  border-color: rgba(244, 214, 133, 0.62);
}

.legal-card::after {
  position: absolute;
  right: -35px;
  bottom: -50px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  content: "";
  background: radial-gradient(circle, rgba(110, 18, 23, 0.42), transparent 66%);
}

.card-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
}

.legal-card h2 {
  margin: 34px 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.52rem;
}

.legal-card p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 0.93rem;
}

.legal-card > a {
  position: absolute;
  left: 28px;
  bottom: 28px;
  z-index: 1;
  color: var(--gold-light);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.document-hero {
  padding: 74px 0 42px;
  border-bottom: 1px solid var(--line-soft);
}

.document-hero h1 {
  max-width: 820px;
  font-size: clamp(2.45rem, 7vw, 5rem);
}

.document-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 18px;
  color: var(--muted);
  font-size: 0.84rem;
}

.document-layout {
  padding: 48px 0 96px;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 106px;
  padding: 19px;
  border: 1px solid var(--line-soft);
  border-radius: 15px;
  background: rgba(14, 15, 19, 0.72);
}

.toc strong {
  display: block;
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.toc a {
  display: block;
  padding: 7px 0;
  color: #aaa69e;
  font-size: 0.81rem;
  text-decoration: none;
}

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

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

.legal-copy section {
  padding: 0 0 38px;
  scroll-margin-top: 104px;
}

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

.legal-copy h2 {
  margin: 0 0 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1.2;
}

.legal-copy h3 {
  margin: 25px 0 9px;
  color: var(--gold-light);
  font-size: 1rem;
}

.legal-copy p,
.legal-copy li {
  color: #beb9ae;
}

.legal-copy ul {
  padding-left: 1.2rem;
}

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

.notice {
  margin: 22px 0;
  padding: 18px 19px;
  border-left: 3px solid var(--gold);
  border-radius: 0 12px 12px 0;
  background: rgba(214, 165, 54, 0.075);
  color: #d6d0c4;
}

.notice strong {
  color: var(--gold-light);
}

.support-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.support-item {
  padding: 20px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.support-item strong {
  display: block;
  margin-bottom: 6px;
  color: var(--paper);
}

.support-item p {
  margin: 0;
  font-size: 0.88rem;
}

.contact-card {
  margin: 34px 0;
  padding: clamp(24px, 5vw, 40px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0, rgba(110, 18, 23, 0.33), transparent 44%),
    var(--panel-strong);
}

.contact-card h2 {
  margin-top: 0;
}

.contact-button {
  display: inline-flex;
  margin-top: 8px;
  padding: 12px 17px;
  border: 1px solid rgba(244, 214, 133, 0.55);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(244, 214, 133, 0.12), rgba(214, 165, 54, 0.04));
  color: var(--gold-light);
  font-weight: 800;
  text-decoration: none;
}

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

.footer-shell {
  width: min(calc(100% - 32px), var(--max));
  min-height: 120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  color: #77746e;
  font-size: 0.78rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  color: #a9a49a;
  text-decoration: none;
}

[data-lang-panel][hidden] {
  display: none !important;
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

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

  .legal-card {
    min-height: 240px;
  }

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

  .toc {
    position: static;
    display: none;
  }
}

@media (max-width: 600px) {
  .nav-shell {
    min-height: 68px;
  }

  .brand-copy strong {
    font-size: 0.86rem;
  }

  .brand-copy small {
    font-size: 0.55rem;
  }

  .hero {
    padding-top: 64px;
  }

  .hero h1 {
    font-size: clamp(2.5rem, 15vw, 4rem);
  }

  .legal-card {
    padding: 23px;
  }

  .legal-card > a {
    left: 23px;
  }

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

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

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

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