:root {
  --bg: #f3f4f6;
  --surface: #ffffff;
  --surface-soft: #e9ecef;
  --text: #111318;
  --muted: #636a75;
  --line: rgba(17, 19, 24, 0.1);
  --red: #e32020;
  --red-dark: #b91010;
  --dark: #0d0f13;
  --radius-xl: 32px;
  --radius-lg: 24px;
  --shadow: 0 24px 70px rgba(17, 19, 24, 0.11);
  --shadow-soft: 0 14px 38px rgba(17, 19, 24, 0.07);
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  font: inherit;
}

address {
  font-style: normal;
}

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

.section {
  padding: 112px 0;
}

.skip-link {
  position: fixed;
  top: 15px;
  left: 15px;
  z-index: 9999;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--text);
  background: #ffffff;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: none;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* HEADER */

.site-header {
  position: fixed;
  top: 14px;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0 20px;
  transition: 0.3s ease;
}

.site-header.scrolled {
  top: 8px;
}

.nav-wrap {
  width: min(100%, 1320px);
  min-height: 76px;
  margin-inline: auto;
  padding: 8px 10px 8px 16px;
  display: flex;
  align-items: center;
  gap: 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: rgba(13, 15, 19, 0.82);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px);
}

.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #ffffff;
}

.brand-logo {
  width: 240px;
  height: 50px;
  flex: 0 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.24));
}

.brand-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.08;
}

.brand-copy strong {
  color: #ffffff;
  font-size: 21px;
  font-weight: 850;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.brand-copy small {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.main-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 26px;
}

.main-nav a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  font-weight: 700;
}

.main-nav a:hover {
  color: #ffffff;
}

.menu-button {
  display: none;
  margin-left: auto;
  padding: 8px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-button span:not(.sr-only) {
  width: 24px;
  height: 2px;
  margin: 5px 0;
  display: block;
  border-radius: 2px;
  background: #ffffff;
}

/* BUTTONS */

.button {
  min-height: 52px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #ffffff;
  background: var(--red);
  font-weight: 800;
  cursor: pointer;
  transition: 0.22s ease;
}

.button:hover {
  background: var(--red-dark);
  box-shadow: 0 13px 28px rgba(227, 32, 32, 0.27);
  transform: translateY(-2px);
}

.button-small {
  min-height: 44px;
  padding-inline: 18px;
  font-size: 14px;
}

.button-white {
  color: var(--dark);
  background: #ffffff;
}

.button-white:hover {
  background: #f4f4f4;
}

/* TYPOGRAPHY */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #ff4b45;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: currentColor;
}

.eyebrow-dark {
  color: var(--red);
}

.eyebrow-light {
  color: rgba(255, 255, 255, 0.75);
}

.section-heading {
  max-width: 780px;
}

.section-heading h2,
.cta-panel h2 {
  margin: 14px 0 18px;
  font-size: clamp(38px, 5vw, 66px);
  line-height: 1.03;
  letter-spacing: -0.045em;
}

/* HERO */

.legal-hero {
  min-height: 760px;
  position: relative;
  padding: 160px 0 100px;
  overflow: hidden;
  color: #ffffff;
  background:
    radial-gradient(
      circle at 86% 18%,
      rgba(227, 32, 32, 0.24),
      transparent 28%
    ),
    linear-gradient(
      145deg,
      #0b0d11 0%,
      #151922 56%,
      #090b0f 100%
    );
}

.hero-glow {
  width: 620px;
  height: 620px;
  position: absolute;
  right: -240px;
  bottom: -300px;
  border-radius: 50%;
  background: rgba(227, 32, 32, 0.18);
  filter: blur(90px);
}

.legal-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 70px;
  align-items: center;
}

.legal-hero-copy h1 {
  margin: 18px 0 24px;
  font-size: clamp(54px, 7vw, 94px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.legal-hero-copy h1 span {
  display: block;
  color: #ff413b;
}

.legal-hero-copy > p {
  max-width: 710px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(18px, 2vw, 22px);
}

.legal-meta {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.legal-meta div {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
}

.legal-meta span {
  display: block;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
}

.legal-meta strong {
  margin-top: 4px;
  display: block;
  font-size: 18px;
}

.legal-overview {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(16px);
}

.overview-label {
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.legal-nav {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
}

.legal-nav a {
  padding: 16px 0;
  display: grid;
  grid-template-columns: 44px 1fr;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
  font-weight: 750;
}

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

.legal-nav a:hover {
  color: #ffffff;
}

.legal-nav span {
  color: #ff4b45;
  font-size: 12px;
}

/* INTRO */

.legal-intro {
  background: #ffffff;
}

.intro-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  align-items: start;
}

.intro-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 19px;
}

/* LEGAL CONTENT */

.legal-content-section {
  background: var(--bg);
}

.legal-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 42px;
  align-items: start;
}

.legal-sticky {
  position: sticky;
  top: 110px;
  padding: 28px;
  border-radius: var(--radius-lg);
  color: #ffffff;
  background:
    radial-gradient(
      circle at 10% 10%,
      rgba(227, 32, 32, 0.24),
      transparent 32%
    ),
    var(--dark);
  box-shadow: var(--shadow-soft);
}

.legal-sticky > span {
  color: #ff4b45;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.legal-sticky > strong {
  margin-top: 8px;
  display: block;
  font-size: 22px;
}

.legal-sticky p {
  margin: 22px 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
}

.legal-sticky a {
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.legal-content {
  display: grid;
  gap: 18px;
}

.legal-card {
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  scroll-margin-top: 115px;
}

.card-number {
  color: var(--red);
  font-size: 13px;
  font-weight: 850;
}

.legal-card h2 {
  margin: 14px 0 20px;
  font-size: clamp(28px, 3vw, 39px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.legal-card h3 {
  margin: 25px 0 12px;
  font-size: 21px;
}

.legal-card p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 16px;
}

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

.legal-card a {
  color: var(--red-dark);
  font-weight: 750;
  overflow-wrap: anywhere;
}

.address-card {
  margin: 24px 0;
  padding: 22px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f6f7f8;
}

.address-card strong {
  margin-bottom: 8px;
  font-size: 18px;
}

.address-card span,
.address-card a {
  margin-top: 3px;
  color: var(--muted);
}

.notice-box {
  margin: 24px 0;
  padding: 22px;
  border-left: 4px solid var(--red);
  border-radius: 0 18px 18px 0;
  background: var(--surface-soft);
}

.notice-important {
  background: #fff0ef;
}

.notice-box strong {
  display: block;
  margin-bottom: 8px;
}

.notice-box p {
  margin: 0;
}

.legal-list {
  margin: 18px 0 22px;
  padding: 0;
  list-style: none;
}

.legal-list li {
  margin-bottom: 12px;
  padding-left: 24px;
  position: relative;
  color: var(--muted);
}

.legal-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  position: absolute;
  top: 10px;
  left: 0;
  border-radius: 50%;
  background: var(--red);
}

/* FORM */

.form-note {
  max-width: 740px;
}

.withdrawal-form {
  margin-top: 26px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #f7f8f9;
}

.withdrawal-form p {
  color: var(--text);
}

.withdrawal-form small {
  color: var(--muted);
}

.form-line {
  height: 30px;
  margin: 6px 0 19px;
  border-bottom: 1px solid #9fa4ac;
}

.form-line-short {
  max-width: 320px;
}

.form-small {
  margin-top: 30px !important;
  font-size: 13px !important;
}

/* PDF DOWNLOAD */

.download-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 36px;
  align-items: center;
}

.download-label {
  color: var(--red);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.download-panel h2 {
  margin-top: 8px;
}

.pdf-button {
  min-width: 260px;
  min-height: 82px;
  padding: 18px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  border-radius: 18px;
  color: #ffffff !important;
  background: linear-gradient(135deg, #ed2b22, #bd0d09);
  box-shadow: 0 18px 35px rgba(227, 32, 32, 0.25);
  font-size: 17px;
  font-weight: 850 !important;
  text-align: center;
  transition: 0.22s ease;
}

.pdf-button span {
  width: 47px;
  height: 47px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.27);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.pdf-button:hover {
  box-shadow: 0 24px 45px rgba(227, 32, 32, 0.34);
  transform: translateY(-3px);
}

.update-notice {
  padding: 28px;
  border-radius: var(--radius-lg);
  color: #ffffff;
  background:
    radial-gradient(
      circle at 90% 20%,
      rgba(255, 255, 255, 0.16),
      transparent 28%
    ),
    linear-gradient(135deg, #e51f1f, #a90909);
}

.update-notice h2 {
  color: #ffffff;
}

.update-notice p {
  color: rgba(255, 255, 255, 0.78);
}

/* CTA */

.cta-section {
  padding-top: 40px;
}

.cta-panel {
  padding: 58px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
  border-radius: var(--radius-xl);
  color: #ffffff;
  background:
    radial-gradient(
      circle at 88% 20%,
      rgba(255, 255, 255, 0.16),
      transparent 26%
    ),
    linear-gradient(135deg, #e51f1f, #a90909);
}

.cta-panel p {
  max-width: 700px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
}

/* FOOTER */

.site-footer {
  margin-top: 110px;
  padding: 76px 0 24px;
  color: #ffffff;
  background: var(--dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr repeat(3, 1fr);
  gap: 60px;
}

.footer-logo-link {
  display: inline-flex;
}

.footer-logo {
  width: 240px;
  height: auto;
  filter: none;
}

.footer-brand p {
  max-width: 350px;
  color: rgba(255, 255, 255, 0.55);
}

.footer-grid h2 {
  margin: 0 0 18px;
  font-size: 15px;
}

.footer-grid > div:not(:first-child) {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-grid a {
  color: rgba(255, 255, 255, 0.63);
}

.footer-grid a:hover,
.footer-grid a[aria-current="page"] {
  color: #ffffff;
}

.footer-bottom {
  margin-top: 64px;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.48);
  font-size: 13px;
}

.footer-bottom div {
  display: flex;
  gap: 18px;
}

.top-button {
  width: 46px;
  height: 46px;
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 900;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: var(--dark);
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  transition: 0.2s ease;
}

.top-button.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ANIMATION */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* RESPONSIVE */

@media (max-width: 1180px) {
  .nav-wrap,
  .main-nav {
    gap: 18px;
  }

  .brand-copy small {
    display: none;
  }
}

@media (max-width: 980px) {
  .brand-copy {
    display: none;
  }

  .brand-logo {
    width: 240px;
    height: 50px;
  }

  .legal-layout {
    grid-template-columns: 250px minmax(0, 1fr);
  }

  .download-panel {
    grid-template-columns: 1fr;
  }

  .pdf-button {
    width: 100%;
  }
}

@media (max-width: 860px) {
  .section {
    padding: 82px 0;
  }

  .site-header {
    top: 10px;
    padding: 0 10px;
  }

  .nav-wrap {
    min-height: 66px;
    border-radius: 18px;
  }

  .menu-button {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 10px;
    left: 10px;
    margin: 0;
    padding: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border-radius: 18px;
    background: rgba(13, 15, 19, 0.98);
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: flex;
  }

  .nav-cta {
    display: none;
  }

  .legal-hero {
    min-height: auto;
    padding-top: 135px;
  }

  .legal-hero-grid,
  .intro-grid,
  .legal-layout,
  .cta-panel {
    grid-template-columns: 1fr;
  }

  .legal-sticky {
    position: static;
  }

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

  .footer-grid > div:last-child {
    grid-column: 2;
  }
}

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

  .brand-logo {
    width: 240px;
    height: 50px;
  }

  .legal-hero {
    padding: 120px 0 72px;
  }

  .legal-hero-copy h1 {
    font-size: clamp(46px, 14vw, 68px);
  }

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

  .legal-card,
  .legal-sticky,
  .cta-panel {
    padding: 28px;
  }

  .withdrawal-form {
    padding: 22px;
  }

  .pdf-button {
    min-width: 0;
    flex-direction: column;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-grid > div:last-child {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 18px;
  }
}

@media print {
  .site-header,
  .legal-hero,
  .legal-intro,
  .legal-sticky,
  .cta-section,
  .site-footer,
  .top-button,
  .download-panel {
    display: none !important;
  }

  body,
  .legal-content-section {
    background: #ffffff;
  }

  .section {
    padding: 0;
  }

  .legal-layout {
    display: block;
  }

  .legal-card {
    padding: 20px 0;
    border: 0;
    box-shadow: none;
    break-inside: avoid;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
