:root {
  --bg: #f7f7fc;
  --surface: #ffffff;
  --surface-soft: #f0efff;
  --primary: #5b5bd6;
  --primary-dark: #4141ad;
  --text: #1e1f2a;
  --muted: #656779;
  --border: #e5e5ef;
  --success: #15835f;
  --warning: #9a6712;
  --danger: #b63d4c;
  --shadow: 0 18px 50px rgba(43, 43, 88, 0.08);
  --radius-lg: 28px;
  --radius-md: 18px;
  --max-width: 1040px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 88% -5%, rgba(91, 91, 214, 0.14), transparent 30rem),
    var(--bg);
  font-family: "Tahoma", "Arial", sans-serif;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.skip-link {
  position: absolute;
  top: -100px;
  right: 16px;
  z-index: 1000;
  padding: 10px 14px;
  color: #fff;
  background: var(--primary-dark);
  border-radius: 10px;
}
.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 247, 252, 0.92);
  border-bottom: 1px solid rgba(229, 229, 239, 0.9);
  backdrop-filter: blur(16px);
}

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

.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-weight: 800;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(145deg, #6e6ee8, #4747bf);
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(91, 91, 214, 0.24);
  font-size: 22px;
  font-weight: 900;
}

.brand-name {
  font-size: 21px;
  letter-spacing: -0.02em;
}

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

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 10px;
}

.nav a:hover,
.nav a:focus-visible,
.nav a[aria-current="page"] {
  color: var(--primary-dark);
  background: var(--surface-soft);
  outline: none;
}

main {
  padding: 54px 0 72px;
}

.hero {
  padding: 52px;
  background:
    linear-gradient(145deg, rgba(91, 91, 214, 0.98), rgba(65, 65, 173, 0.98));
  color: #fff;
  border-radius: 36px;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  left: -90px;
  bottom: -120px;
  border-radius: 50%;
  background: rgba(255,255,255,0.09);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .02em;
  opacity: .86;
}

.hero h1,
.page-title {
  margin: 0;
  line-height: 1.35;
  letter-spacing: -0.03em;
}

.hero h1 {
  font-size: clamp(34px, 6vw, 58px);
  max-width: 800px;
}

.hero p {
  max-width: 760px;
  margin: 20px 0 0;
  font-size: clamp(16px, 2vw, 19px);
  color: rgba(255,255,255,.9);
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
  position: relative;
  z-index: 1;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid transparent;
}

.button-light {
  color: var(--primary-dark);
  background: #fff;
}

.button-ghost {
  color: #fff;
  border-color: rgba(255,255,255,.34);
  background: rgba(255,255,255,.08);
}

.button-primary {
  color: #fff;
  background: var(--primary);
}

.section {
  margin-top: 42px;
}

.section h2 {
  margin: 0 0 12px;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.5;
}

.section-lead {
  margin: 0 0 20px;
  color: var(--muted);
}

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

.card,
.legal-section,
.notice {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 10px 32px rgba(43, 43, 88, 0.045);
}

.card {
  padding: 24px;
  border-radius: var(--radius-md);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

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

.card-link {
  display: block;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease;
}

.card-link:hover {
  transform: translateY(-2px);
  border-color: rgba(91,91,214,.35);
}

.card-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 15px;
  color: var(--primary-dark);
  background: var(--surface-soft);
  border-radius: 13px;
  font-weight: 900;
}

.page-head {
  padding: 28px 0 26px;
  border-bottom: 1px solid var(--border);
}

.page-title {
  font-size: clamp(34px, 5vw, 48px);
}

.meta {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 24px;
  align-items: start;
  margin-top: 30px;
}

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

.legal-section {
  padding: 26px;
  border-radius: var(--radius-md);
  scroll-margin-top: 96px;
}

.legal-section h2 {
  margin: 0 0 12px;
  font-size: 21px;
  line-height: 1.5;
}

.legal-section h3 {
  margin: 18px 0 6px;
  font-size: 16px;
}

.legal-section p {
  margin: 0 0 10px;
  color: #3d3f4e;
}

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

.legal-section ul,
.legal-section ol {
  margin: 10px 0 0;
  padding-inline-start: 24px;
}

.legal-section li {
  margin-bottom: 8px;
  color: #3d3f4e;
}

.toc {
  position: sticky;
  top: 98px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.toc strong {
  display: block;
  margin-bottom: 10px;
}

.toc a {
  display: block;
  padding: 7px 9px;
  border-radius: 9px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.toc a:hover,
.toc a:focus-visible {
  color: var(--primary-dark);
  background: var(--surface-soft);
  outline: none;
}

.notice {
  padding: 20px 22px;
  margin-top: 24px;
  border-radius: var(--radius-md);
  border-right: 4px solid var(--primary);
}

.notice.warning { border-right-color: var(--warning); }
.notice.danger { border-right-color: var(--danger); }

.notice strong { display: block; margin-bottom: 5px; }
.notice p { margin: 0; color: var(--muted); }

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 14px;
}

.data-table th,
.data-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
  text-align: right;
  vertical-align: top;
}

.data-table th {
  color: var(--text);
  background: #fafafe;
}

.data-table td {
  color: #454756;
}

.contact-box {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.contact-row span:first-child {
  color: var(--muted);
  font-size: 14px;
}

.contact-value {
  direction: ltr;
  text-align: left;
  font-weight: 800;
}

.placeholder {
  color: var(--danger);
  background: #fff1f3;
  border: 1px dashed rgba(182,61,76,.45);
  border-radius: 8px;
  padding: 2px 7px;
  font-family: monospace;
  direction: ltr;
  display: inline-block;
}

.site-footer {
  padding: 28px 0 38px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,.55);
}

.footer-inner {
  width: min(calc(100% - 32px), var(--max-width));
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}

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

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

.footer-links a:hover { color: var(--primary-dark); }

.small {
  font-size: 13px;
  color: var(--muted);
}

.code {
  direction: ltr;
  unicode-bidi: embed;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .93em;
}

@media (max-width: 820px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 0;
  }

  .site-header { position: static; }
  .nav { width: 100%; }
  .nav a { padding: 7px 8px; }

  main { padding-top: 30px; }

  .hero {
    padding: 34px 24px;
    border-radius: 26px;
  }

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

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

  .toc {
    position: static;
    order: -1;
  }
}

@media (max-width: 520px) {
  .container,
  .header-inner,
  .footer-inner {
    width: min(calc(100% - 22px), var(--max-width));
  }

  .legal-section { padding: 20px 17px; }

  .data-table {
    display: block;
    overflow-x: auto;
    white-space: normal;
  }

  .contact-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

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