:root {
  --fusa-950: #1d132d;
  --fusa-900: #2a1842;
  --fusa-800: #43236f;
  --fusa-700: #5d32a5;
  --fusa-600: #7241cf;
  --fusa-500: #8b5be6;
  --fusa-100: #eee7fb;
  --fusa-50: #f8f5fd;
  --ink: #272231;
  --muted: #6f6879;
  --line: #e9e2f2;
  --surface: rgba(255, 255, 255, 0.94);
  --white: #ffffff;
  --success: #198754;
  --danger: #c33b5d;
  --shadow-sm: 0 10px 30px rgba(49, 28, 82, 0.08);
  --shadow-lg: 0 24px 70px rgba(49, 28, 82, 0.16);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 3%, rgba(139, 91, 230, 0.13), transparent 28rem),
    radial-gradient(circle at 92% 18%, rgba(114, 65, 207, 0.10), transparent 24rem),
    #fbf9fe;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--fusa-700);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--fusa-900);
}

.site-header {
  padding: 22px 22px 0;
}

.header-panel {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  overflow: hidden;
  color: var(--white);
  border-radius: 30px;
  background:
    linear-gradient(128deg, rgba(29, 19, 45, 0.98), rgba(79, 40, 132, 0.98) 58%, rgba(139, 91, 230, 0.94));
  box-shadow: var(--shadow-lg);
}

.header-panel::before,
.header-panel::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.header-panel::before {
  width: 310px;
  height: 310px;
  top: -170px;
  right: -70px;
  background: rgba(255, 255, 255, 0.10);
}

.header-panel::after {
  width: 170px;
  height: 170px;
  right: 150px;
  bottom: -115px;
  border: 34px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  position: relative;
  z-index: 1;
  padding: 22px 30px 40px;
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.brand:hover {
  color: var(--white);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.13);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
  font-size: 1.45rem;
  font-weight: 900;
}

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

.brand-copy strong {
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.brand-copy small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
}

.support-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
}

.support-link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.17);
}

.hero {
  max-width: 820px;
  padding-top: 44px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: #ddcff8;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  border-radius: 99px;
  background: #c9acf7;
}

.hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(2.15rem, 5vw, 4.15rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.hero p {
  max-width: 690px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.80);
  font-size: clamp(1rem, 2vw, 1.16rem);
}

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

.meta-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
  font-weight: 650;
}

.site-nav {
  position: sticky;
  top: 12px;
  z-index: 30;
  max-width: 990px;
  margin: -19px auto 0;
  padding: 0 18px;
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 5px;
  overflow-x: auto;
  padding: 8px;
  border: 1px solid rgba(223, 214, 235, 0.9);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.91);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(16px);
  scrollbar-width: none;
}

.nav-inner::-webkit-scrollbar {
  display: none;
}

.nav-inner a {
  flex: 0 0 auto;
  padding: 9px 13px;
  color: #655d70;
  border-radius: 11px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 750;
  white-space: nowrap;
}

.nav-inner a:hover {
  color: var(--fusa-800);
  background: var(--fusa-50);
}

.nav-inner a[aria-current="page"] {
  color: var(--white);
  background: linear-gradient(135deg, var(--fusa-700), var(--fusa-500));
  box-shadow: 0 8px 18px rgba(93, 50, 165, 0.22);
}

.legal-shell {
  display: grid;
  grid-template-columns: minmax(210px, 250px) minmax(0, 1fr);
  gap: 24px;
  max-width: 1180px;
  margin: 38px auto 70px;
  padding: 0 22px;
}

.legal-shell.single {
  grid-template-columns: minmax(0, 1fr);
  max-width: 1060px;
}

.toc {
  align-self: start;
  position: sticky;
  top: 92px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
}

.toc-title {
  margin: 0 0 10px;
  color: var(--fusa-900);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.toc a {
  display: block;
  margin: 2px 0;
  padding: 7px 9px;
  color: #655d70;
  border-radius: 9px;
  text-decoration: none;
  font-size: 0.88rem;
  line-height: 1.35;
}

.toc a:hover {
  color: var(--fusa-800);
  background: var(--fusa-50);
}

.legal-card,
.home-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.legal-card {
  padding: clamp(24px, 4vw, 52px);
}

.legal-intro {
  margin-bottom: 32px;
  padding: 18px 20px;
  border: 1px solid #e4d8f6;
  border-radius: 15px;
  background: linear-gradient(135deg, #faf7ff, #f2ebfd);
  color: #50465d;
}

.legal-intro p {
  margin: 0;
}

.legal-card h2 {
  scroll-margin-top: 105px;
  position: relative;
  margin: 42px 0 13px;
  padding-top: 4px;
  color: var(--fusa-900);
  font-size: clamp(1.2rem, 2vw, 1.42rem);
  line-height: 1.35;
  letter-spacing: -0.015em;
}

.legal-card h2:first-of-type {
  margin-top: 10px;
}

.legal-card h2::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin: 0 11px 2px 0;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--fusa-600), var(--fusa-500));
  transform: rotate(45deg);
}

.legal-card h2:not(:first-of-type) {
  border-top: 1px solid #eee8f4;
  padding-top: 34px;
}

.legal-card p,
.legal-card li {
  color: #4d4756;
}

.legal-card p {
  margin: 0 0 16px;
  max-width: 78ch;
}

.legal-card strong {
  color: var(--ink);
}

.legal-card ul,
.legal-card ol {
  max-width: 78ch;
  margin: 0 0 20px;
  padding-left: 1.45rem;
}

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

.legal-card a {
  font-weight: 700;
}

.action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  color: var(--white) !important;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--fusa-700), var(--fusa-500));
  box-shadow: 0 12px 24px rgba(93, 50, 165, 0.23);
  text-decoration: none;
  font-weight: 800;
}

.action-button:hover {
  color: var(--white) !important;
  transform: translateY(-1px);
}

.home-card {
  padding: clamp(24px, 4vw, 46px);
}

.home-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.home-intro h2 {
  margin: 0;
  color: var(--fusa-950);
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
}

.home-intro p {
  max-width: 570px;
  margin: 8px 0 0;
  color: var(--muted);
}

.document-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.document-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 210px;
  padding: 22px;
  overflow: hidden;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(145deg, #ffffff, #fbf8ff);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.document-card:hover {
  color: var(--ink);
  border-color: #d7c5f1;
  box-shadow: 0 18px 36px rgba(60, 33, 101, 0.12);
  transform: translateY(-3px);
}

.document-index {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 26px;
  color: var(--fusa-700);
  border-radius: 13px;
  background: var(--fusa-100);
  font-size: 0.82rem;
  font-weight: 900;
}

.document-card h3 {
  margin: 0 0 7px;
  color: var(--fusa-950);
  font-size: 1.18rem;
}

.document-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.document-arrow {
  margin-top: auto;
  padding-top: 20px;
  color: var(--fusa-700);
  font-weight: 850;
}

.info-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.info-item {
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fcfbfe;
}

.info-item span {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.info-item strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 0.93rem;
}

.site-footer {
  padding: 0 22px 32px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 2px 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

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

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--fusa-700);
}

@media (max-width: 900px) {
  .legal-shell {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
  }

  .toc-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 8px;
  }
}

@media (max-width: 700px) {
  .site-header {
    padding: 10px 10px 0;
  }

  .header-panel {
    border-radius: 22px;
  }

  .header-inner {
    padding: 17px 18px 32px;
  }

  .support-link {
    padding: 8px 11px;
    font-size: 0.82rem;
  }

  .brand-copy small {
    display: none;
  }

  .hero {
    padding-top: 34px;
  }

  .hero h1 {
    font-size: clamp(2rem, 11vw, 3.2rem);
  }

  .site-nav {
    top: 7px;
    margin-top: -14px;
    padding: 0 16px;
  }

  .legal-shell {
    margin-top: 26px;
    padding: 0 12px;
  }

  .legal-card,
  .home-card {
    border-radius: 20px;
  }

  .document-grid,
  .info-strip {
    grid-template-columns: 1fr;
  }

  .document-card {
    min-height: 185px;
  }

  .home-intro,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 15px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .support-link span {
    display: none;
  }

  .hero p {
    font-size: 0.98rem;
  }

  .hero-meta {
    gap: 7px;
  }

  .meta-chip {
    font-size: 0.76rem;
  }

  .toc-links {
    grid-template-columns: 1fr;
  }

  .legal-card {
    padding: 22px 18px 28px;
  }

  .legal-card h2 {
    font-size: 1.18rem;
  }

  .footer-inner {
    font-size: 0.84rem;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
