:root {
  --ink: #172033;
  --muted: #667085;
  --line: #e8eaf0;
  --surface: #ffffff;
  --surface-soft: #faf7ff;
  --purple: #59168b;
  --purple-bright: #9810fa;
  --violet: #ac4bff;
  --blue: #3080ff;
  --shadow: 0 24px 70px rgba(45, 21, 74, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
}
a { color: var(--purple); text-underline-offset: 3px; }
a:hover { color: var(--purple-bright); }
img { max-width: 100%; }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(14px);
}
.nav {
  width: min(1160px, calc(100% - 40px));
  min-height: 76px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 14px; color: var(--ink); text-decoration: none; }
.brand img { width: 180px; height: 52px; object-fit: cover; object-position: center; }
.brand span { padding-left: 14px; border-left: 1px solid var(--line); font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: #475066; text-decoration: none; font-size: .95rem; font-weight: 600; }
.nav-links a[aria-current="page"], .nav-links a:hover { color: var(--purple); }

.hero {
  overflow: hidden;
  position: relative;
  color: white;
  background:
    radial-gradient(circle at 82% 25%, rgba(48,128,255,.35), transparent 34%),
    radial-gradient(circle at 15% 90%, rgba(225,42,251,.28), transparent 30%),
    linear-gradient(135deg, #1c0e29 0%, #59168b 58%, #271044 100%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .16;
  background-image: linear-gradient(rgba(255,255,255,.15) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.15) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent);
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1160px, calc(100% - 40px));
  margin: auto;
  padding: 88px 0 94px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
  gap: 72px;
  align-items: center;
}
.eyebrow { margin: 0 0 16px; color: #e0aaff; font-size: .82rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.16; letter-spacing: -.025em; }
h1 { max-width: 780px; margin: 0; font-size: clamp(2.5rem, 6vw, 4.9rem); }
.hero-copy { max-width: 700px; margin: 24px 0 0; color: #eee7f6; font-size: clamp(1.05rem, 2vw, 1.25rem); }
.hero-card {
  padding: 28px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 22px;
  background: rgba(255,255,255,.09);
  box-shadow: 0 20px 55px rgba(0,0,0,.18);
}
.hero-card strong { display: block; margin-bottom: 10px; font-size: 1.1rem; }
.hero-card p { margin: 0; color: #eee7f6; }
.hero-card .status { display: inline-flex; align-items: center; gap: 9px; margin-top: 20px; font-size: .9rem; font-weight: 700; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #a7f3d0; box-shadow: 0 0 0 5px rgba(167,243,208,.13); }

.page-hero .hero-inner { display: block; padding: 68px 0 72px; }
.page-hero h1 { font-size: clamp(2.35rem, 5vw, 4rem); }
.page-hero .hero-copy { max-width: 810px; }

.main { width: min(1160px, calc(100% - 40px)); margin: auto; padding: 76px 0 96px; }
.section-intro { max-width: 760px; margin-bottom: 40px; }
.section-intro h2 { margin: 0 0 14px; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.section-intro p { margin: 0; color: var(--muted); font-size: 1.08rem; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 14px 38px rgba(32, 21, 45, .06);
}
.card-number { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 20px; border-radius: 13px; color: #fff; background: linear-gradient(135deg, var(--purple-bright), var(--blue)); font-weight: 800; }
.card h3 { margin: 0 0 10px; font-size: 1.22rem; }
.card p { margin: 0; color: var(--muted); }
.notice {
  margin-top: 54px;
  padding: 30px 34px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  border: 1px solid #e9d5ff;
  border-radius: 20px;
  background: var(--surface-soft);
}
.notice-mark { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--purple); font-weight: 900; }
.notice h2 { margin: 0 0 8px; font-size: 1.3rem; }
.notice p { margin: 0; color: #4c3d57; }

.legal-layout { display: grid; grid-template-columns: 250px minmax(0, 760px); justify-content: space-between; gap: 68px; align-items: start; }
.toc { position: sticky; top: 108px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 12px 30px rgba(32,21,45,.05); }
.toc strong { display: block; margin-bottom: 12px; }
.toc a { display: block; padding: 8px 0; color: var(--muted); text-decoration: none; font-size: .9rem; line-height: 1.3; }
.toc a:hover { color: var(--purple); }
.legal { min-width: 0; }
.legal .updated { margin: 0 0 34px; color: var(--muted); font-size: .92rem; }
.legal section { scroll-margin-top: 106px; padding: 0 0 34px; margin: 0 0 34px; border-bottom: 1px solid var(--line); }
.legal section:last-child { border-bottom: 0; }
.legal h2 { margin: 0 0 14px; font-size: 1.55rem; }
.legal h3 { margin: 22px 0 8px; font-size: 1.08rem; }
.legal p, .legal li { color: #465066; }
.legal ul { padding-left: 22px; }
.legal li + li { margin-top: 8px; }
.contact-box { padding: 26px; border-radius: 18px; color: #fff; background: linear-gradient(135deg, var(--purple), #32104c); }
.contact-box h2, .contact-box p { color: #fff; }
.contact-box a { color: #fff; }

.site-footer { color: #475066; background: #f8f6fb; border-top: 1px solid var(--line); }
.footer-inner { width: min(1160px, calc(100% - 40px)); margin: auto; padding: 42px 0; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.footer-inner img { width: 180px; height: 52px; object-fit: cover; object-position: center; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 20px; }
.footer-links a { color: #475066; text-decoration: none; font-size: .9rem; }
.footer-meta { margin: 0; font-size: .84rem; color: var(--muted); }

@media (max-width: 860px) {
  .nav { min-height: auto; padding: 16px 0; align-items: flex-start; }
  .brand span { display: none; }
  .nav-links { flex-wrap: wrap; justify-content: flex-end; gap: 8px 16px; }
  .hero-inner { grid-template-columns: 1fr; gap: 34px; padding: 66px 0 70px; }
  .grid { grid-template-columns: 1fr; }
  .legal-layout { grid-template-columns: 1fr; gap: 34px; }
  .toc { position: static; }
}
@media (max-width: 580px) {
  .nav, .hero-inner, .main, .footer-inner { width: min(100% - 28px, 1160px); }
  .nav { display: block; }
  .brand { margin-bottom: 12px; }
  .nav-links { justify-content: flex-start; }
  .hero-inner { padding: 52px 0 58px; }
  .main { padding: 52px 0 70px; }
  .hero-card, .card { padding: 22px; }
  .notice { grid-template-columns: 1fr; padding: 24px; }
  .footer-inner { display: block; }
  .footer-links { justify-content: flex-start; margin: 22px 0; }
}
