:root {
  color-scheme: light;
  --ink: #210030;
  --ink-soft: #3b0764;
  --brand: #7e22ce;
  --brand-strong: #6b21a8;
  --brand-soft: #f3e8ff;
  --surface: #ffffff;
  --surface-muted: #f8fafc;
  --line: #e2e8f0;
  --text: #172033;
  --muted: #5f6f86;
  --positive: #047857;
  --warning: #92400e;
  --shadow: 0 24px 60px -40px rgba(33, 0, 48, 0.42);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 8% -4%, rgba(126, 34, 206, 0.12), transparent 28rem),
    var(--surface-muted);
  line-height: 1.65;
}

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

a:hover {
  color: var(--brand);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(126, 34, 206, 0.35);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  border-radius: 0.75rem;
  color: white;
  background: var(--ink);
  transform: translateY(-160%);
}

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

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.86);
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(18px);
}

.nav-shell,
.page-shell,
.hero-shell,
.footer-shell {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.nav-shell {
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  font-weight: 850;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.brand-mark {
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  border-radius: 0.8rem;
  color: white;
  background: linear-gradient(145deg, var(--brand), var(--ink));
  box-shadow: 0 10px 24px -12px rgba(126, 34, 206, 0.9);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-links a {
  padding: 0.55rem 0.75rem;
  border-radius: 0.7rem;
  color: #475569;
  font-size: 0.88rem;
  font-weight: 650;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--brand-strong);
  background: var(--brand-soft);
}

.nav-links .login-link {
  margin-left: 0.35rem;
  color: white;
  background: var(--ink);
}

.nav-links .login-link:hover {
  color: white;
  background: var(--brand-strong);
}

.menu-button {
  display: none;
  width: 2.65rem;
  height: 2.65rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  color: var(--ink);
  background: white;
  cursor: pointer;
}

.hero {
  padding: 5.5rem 0 3.4rem;
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.72fr);
  align-items: center;
  gap: 3.5rem;
}

.eyebrow {
  margin: 0;
  color: var(--brand-strong);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: #0f172a;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

h1 {
  max-width: 16ch;
  margin: 0.8rem 0 1.1rem;
  font-size: clamp(2.45rem, 6vw, 4.65rem);
}

.legal-hero h1 {
  max-width: 22ch;
  font-size: clamp(2.25rem, 5vw, 3.85rem);
}

.hero-copy {
  max-width: 65ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.7rem;
}

.button {
  display: inline-flex;
  min-height: 2.85rem;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  color: #334155;
  background: white;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  border-color: var(--brand-strong);
  color: white;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  box-shadow: 0 14px 26px -18px rgba(126, 34, 206, 0.9);
}

.button-primary:hover {
  color: white;
  background: var(--ink-soft);
}

.hero-card,
.content-card,
.feature-card,
.notice {
  border: 1px solid rgba(226, 232, 240, 0.94);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 1.6rem;
}

.hero-card h2 {
  margin: 0 0 0.9rem;
  font-size: 1.2rem;
}

.check-list,
.plain-list {
  margin: 0;
  padding-left: 1.2rem;
}

.check-list li,
.plain-list li {
  margin: 0.48rem 0;
}

.check-list li::marker {
  color: var(--positive);
}

.page-shell {
  padding-bottom: 5rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0 0 4rem;
}

.feature-card {
  padding: 1.35rem;
}

.feature-card h2 {
  margin: 0 0 0.55rem;
  font-size: 1.08rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.legal-layout {
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  align-items: start;
  gap: 1.5rem;
}

.table-of-contents {
  position: sticky;
  top: 6rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.88);
}

.table-of-contents strong {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.table-of-contents a {
  display: block;
  padding: 0.3rem 0;
  color: #64748b;
  font-size: 0.82rem;
  text-decoration: none;
}

.table-of-contents a:hover {
  color: var(--brand-strong);
}

.content-card {
  padding: clamp(1.35rem, 4vw, 3.2rem);
}

.content-card section {
  scroll-margin-top: 6rem;
  padding: 0.6rem 0 1.5rem;
  border-bottom: 1px solid #edf2f7;
}

.content-card section:last-child {
  border-bottom: 0;
}

.content-card h2 {
  margin: 0.6rem 0 0.8rem;
  font-size: clamp(1.25rem, 3vw, 1.65rem);
}

.content-card h3 {
  margin: 1.1rem 0 0.35rem;
  font-size: 1.02rem;
}

.content-card p {
  margin: 0.6rem 0;
}

.data-table-wrap {
  margin: 1rem 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
}

.data-table {
  width: 100%;
  min-width: 42rem;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.data-table th,
.data-table td {
  padding: 0.8rem 0.9rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  color: #334155;
  background: #f8fafc;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.notice {
  margin: 1rem 0;
  padding: 1rem 1.1rem;
  border-color: #d8b4fe;
  color: #4c1d95;
  background: #faf5ff;
  box-shadow: none;
}

.notice-warning {
  border-color: #fde68a;
  color: var(--warning);
  background: #fffbeb;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  margin-top: 1.4rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.site-footer {
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
  color: #64748b;
  background: white;
}

.footer-shell {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.footer-links a {
  font-size: 0.86rem;
}

@media (max-width: 800px) {
  .menu-button {
    display: grid;
    place-items: center;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 1rem;
    left: 1rem;
    display: none;
    padding: 0.7rem;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: white;
    box-shadow: var(--shadow);
  }

  .nav-links[data-open] {
    display: grid;
  }

  .nav-links .login-link {
    margin: 0.3rem 0 0;
    text-align: center;
  }

  .hero {
    padding-top: 3.5rem;
  }

  .hero-shell,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .table-of-contents {
    position: static;
  }

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

  .footer-shell {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  body {
    color: black;
    background: white;
    font-size: 10.5pt;
  }

  .site-header,
  .site-footer,
  .table-of-contents,
  .hero-actions,
  .skip-link {
    display: none !important;
  }

  .hero {
    padding: 1rem 0;
  }

  .hero-shell,
  .legal-layout {
    display: block;
  }

  .content-card {
    padding: 0;
    border: 0;
    box-shadow: none;
  }

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