:root {
  --ink: #070913;
  --ink-soft: #0d1120;
  --paper: #f7f8fb;
  --paper-soft: #eef1f6;
  --text: #151a2b;
  --muted: #626a7d;
  --line: rgba(15, 23, 42, 0.13);
  --line-dark: rgba(255, 255, 255, 0.14);
  --pink: #ed2f7a;
  --pink-dark: #a91550;
  --cyan: #27c8eb;
  --green: #25d366;
  --gold: #e9b949;
  --radius: 8px;
  --shadow: 0 24px 60px rgba(5, 8, 20, 0.16);
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  color: var(--text);
  background: var(--paper);
  font-family: "Inter", Arial, sans-serif;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
}

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

button,
input {
  font: inherit;
}

.container {
  width: min(1120px, calc(100vw - 40px));
  margin: 0 auto;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 4px;
  color: var(--ink);
  background: var(--green);
  transform: translateY(-160%);
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  color: #fff;
  border-bottom: 1px solid var(--line-dark);
  background: rgba(7, 9, 19, 0.94);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
}

.brand-mark {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-word strong,
.brand-word span {
  display: block;
}

.brand-word strong {
  font: 600 1.1rem/1 "Cinzel", Georgia, serif;
}

.brand-word span {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.78rem;
}

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

.nav > a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.nav > a:hover,
.nav > a:focus-visible,
.nav > a[aria-current="page"] {
  color: var(--green);
}

.nav .nav-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(37, 211, 102, 0.5);
  border-radius: 6px;
  color: #fff;
  background: rgba(37, 211, 102, 0.12);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-dark);
  border-radius: 6px;
  color: #fff;
  background: transparent;
  cursor: pointer;
}

.legal-hero {
  position: relative;
  overflow: hidden;
  min-height: 370px;
  display: grid;
  align-items: center;
  color: #fff;
  background-color: var(--ink);
  background-image:
    linear-gradient(90deg, rgba(7, 9, 19, 0.97) 0%, rgba(7, 9, 19, 0.82) 57%, rgba(7, 9, 19, 0.66) 100%),
    url("/assets/brand/neon-jungle-primary.webp");
  background-position: center;
  background-size: cover;
}

.legal-hero::after {
  content: "";
  position: absolute;
  right: -58px;
  bottom: -96px;
  width: min(430px, 38vw);
  aspect-ratio: 1;
  pointer-events: none;
  background: url("/assets/brand/neon-flora-corner-right.webp") center / contain no-repeat;
  opacity: 0.52;
}

.legal-hero .container {
  position: relative;
  z-index: 1;
  padding: 74px 0 68px;
}

.legal-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.legal-hero h1 {
  max-width: 850px;
  margin: 0;
  font: 600 clamp(2.55rem, 6vw, 5.3rem)/0.97 "Cinzel", Georgia, serif;
}

.legal-hero p {
  max-width: 720px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(1rem, 1.7vw, 1.22rem);
  line-height: 1.6;
}

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

.legal-meta span,
.legal-meta a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line-dark);
  border-radius: 5px;
  color: rgba(255, 255, 255, 0.84);
  background: rgba(7, 9, 19, 0.52);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.legal-shell {
  display: grid;
  grid-template-columns: minmax(210px, 0.3fr) minmax(0, 0.7fr);
  gap: clamp(34px, 6vw, 78px);
  padding: 64px 0 90px;
}

.legal-index {
  align-self: start;
  position: sticky;
  top: 104px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 14px 38px rgba(5, 8, 20, 0.08);
}

.legal-index strong {
  display: block;
  margin-bottom: 14px;
  color: var(--pink-dark);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.legal-index nav {
  display: grid;
  gap: 4px;
}

.legal-index a {
  padding: 9px 0;
  color: #384055;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.35;
  text-decoration: none;
}

.legal-index a:last-child {
  border-bottom: 0;
}

.legal-index a:hover,
.legal-index a:focus-visible {
  color: var(--pink-dark);
}

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

.legal-notice {
  margin-bottom: 34px;
  padding: 20px 22px;
  border-left: 4px solid var(--cyan);
  background: #eaf8fb;
  color: #193646;
  line-height: 1.6;
}

.legal-section {
  padding: 0 0 36px;
  margin: 0 0 36px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 112px;
}

.legal-section:last-child {
  margin-bottom: 0;
  border-bottom: 0;
}

.legal-section h2 {
  margin: 0 0 16px;
  color: #11172b;
  font: 650 clamp(1.52rem, 2.8vw, 2.25rem)/1.15 "Cinzel", Georgia, serif;
}

.legal-section h3 {
  margin: 24px 0 10px;
  color: var(--pink-dark);
  font-size: 1rem;
}

.legal-section p,
.legal-section li {
  color: #41495d;
  font-size: 0.98rem;
  line-height: 1.72;
}

.legal-section p {
  margin: 0 0 14px;
}

.legal-section ul,
.legal-section ol {
  margin: 12px 0 0;
  padding-left: 22px;
}

.legal-section li + li {
  margin-top: 9px;
}

.legal-section a {
  color: #076b83;
  font-weight: 700;
}

.contact-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0 24px;
}

.contact-method {
  min-height: 132px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(5, 8, 20, 0.06);
}

.contact-method i {
  color: var(--pink);
  font-size: 1.25rem;
}

.contact-method strong,
.contact-method span {
  display: block;
}

.contact-method strong {
  margin: 16px 0 7px;
  color: #141a2d;
}

.contact-method span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.contact-method:hover,
.contact-method:focus-visible {
  border-color: rgba(237, 47, 122, 0.46);
  transform: translateY(-2px);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  counter-reset: process;
  margin-top: 20px;
}

.process-step {
  min-height: 170px;
  padding: 20px;
  border-top: 3px solid var(--pink);
  background: var(--paper-soft);
  counter-increment: process;
}

.process-step::before {
  content: "0" counter(process);
  display: block;
  margin-bottom: 24px;
  color: var(--pink-dark);
  font-weight: 800;
}

.process-step strong,
.process-step span {
  display: block;
}

.process-step span {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.related-legal {
  padding: 52px 0;
  color: #fff;
  background: var(--ink-soft);
}

.related-legal h2 {
  margin: 0 0 22px;
  font: 600 clamp(1.75rem, 3vw, 2.7rem)/1.1 "Cinzel", Georgia, serif;
}

.related-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.related-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line-dark);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.84);
  text-decoration: none;
}

.related-links a:hover,
.related-links a:focus-visible {
  color: #fff;
  border-color: rgba(39, 200, 235, 0.6);
}

.footer {
  padding: 52px 0 26px;
  color: #fff;
  border-top: 1px solid var(--line-dark);
  background: #05070f;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  gap: 52px;
}

.footer h2,
.footer h3 {
  margin: 0;
  font-family: "Cinzel", Georgia, serif;
}

.footer h2 {
  font-size: clamp(2.25rem, 5vw, 4.4rem);
}

.footer h3 {
  margin-bottom: 12px;
  color: var(--green);
  font-size: 1.2rem;
}

.footer-contact,
.footer-links {
  display: grid;
  gap: 8px;
}

.footer-contact a,
.footer-links a,
.footer-bottom a {
  width: fit-content;
  color: rgba(255, 255, 255, 0.76);
  text-decoration: none;
}

.footer-links {
  margin-top: 20px;
  font-size: 1.12rem;
}

.footer-links a {
  width: 100%;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer a:hover,
.footer a:focus-visible {
  color: var(--green);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 42px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.82rem;
}

@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    min-height: calc(100dvh - 76px);
    display: none;
    align-content: start;
    align-items: stretch;
    padding: 24px 20px;
    background: rgba(7, 9, 19, 0.99);
  }

  .nav.is-open {
    display: grid;
  }

  .nav > a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line-dark);
  }

  .nav .nav-action {
    justify-content: center;
    margin-top: 10px;
  }

  .legal-shell {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .legal-index {
    position: static;
  }

  .process-steps,
  .related-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(1120px, calc(100vw - 28px));
  }

  .brand-word span {
    display: none;
  }

  .legal-hero {
    min-height: 330px;
  }

  .legal-hero::after {
    right: -74px;
    bottom: -44px;
    width: 240px;
    opacity: 0.38;
  }

  .legal-hero .container {
    padding: 58px 0 52px;
  }

  .legal-hero h1 {
    max-width: 100%;
    font-size: clamp(2rem, 11vw, 3.2rem);
    overflow-wrap: anywhere;
  }

  .legal-shell {
    padding: 42px 0 62px;
  }

  .legal-index {
    padding: 18px;
  }

  .contact-methods {
    grid-template-columns: 1fr;
  }

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

  .footer-bottom {
    display: grid;
    gap: 8px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
