@font-face {
  font-family: "Onest";
  src: url("assets/fonts/Onest-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Onest";
  src: url("assets/fonts/Onest-Medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Onest";
  src: url("assets/fonts/Onest-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --deep: #180a3b;
  --primary: #4d2c9d;
  --active: #7b53d8;
  --soft: #ae8dfe;
  --lavender: #e4e5f7;
  --surface: #f7f6f9;
  --white: #fff;
  --muted: #655d79;
  --line: rgba(24, 10, 59, 0.14);
  --font: "Onest", "Segoe UI", Arial, sans-serif;
  --max: 1320px;
  --gutter: clamp(20px, 5vw, 72px);
  --radius: 24px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  background: var(--surface);
}

body {
  margin: 0;
  color: var(--deep);
  background: var(--surface);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.65;
}

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

p,
dl {
  margin-top: 0;
}

:focus-visible {
  outline: 3px solid var(--active);
  outline-offset: 4px;
}

::selection {
  color: var(--white);
  background: var(--active);
}

.container {
  width: min(var(--max), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 12px 18px;
  border-radius: 12px;
  color: var(--white);
  background: var(--deep);
  font-size: 14px;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

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

.topbar {
  position: sticky;
  z-index: 100;
  top: 0;
  height: 82px;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 246, 249, 0.92);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  width: 190px;
  align-items: center;
}

.brand-logo {
  width: 100%;
  height: auto;
}

.back-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--primary);
  background: var(--white);
  font-size: 14px;
  font-weight: 700;
}

.back-link::before {
  content: "←";
}

.back-link:hover {
  border-color: rgba(123, 83, 216, 0.38);
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 82% 28%, rgba(174, 141, 254, 0.32), transparent 26%),
    var(--deep);
}

.hero::after {
  position: absolute;
  top: -180px;
  right: -120px;
  width: 540px;
  height: 540px;
  border: 1px solid rgba(174, 141, 254, 0.2);
  border-radius: 50%;
  content: "";
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.65fr);
  gap: clamp(48px, 8vw, 120px);
  align-items: end;
  padding-block: clamp(82px, 10vw, 140px);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  color: var(--soft);
  font-size: 14px;
  font-weight: 700;
}

.kicker::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

h1 {
  max-width: 850px;
  font-size: clamp(52px, 6vw, 88px);
  line-height: 0.96;
}

h2 {
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1;
}

h3 {
  font-size: 26px;
  line-height: 1.12;
}

.hero-note {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.hero-note > p {
  color: rgba(255, 255, 255, 0.72);
}

.hero-note dl {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 18px;
  margin-bottom: 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 14px;
}

.hero-note dt {
  color: rgba(255, 255, 255, 0.48);
}

.hero-note dd {
  margin: 0;
}

.document-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(48px, 8vw, 110px);
  align-items: start;
  padding-block: clamp(70px, 9vw, 130px);
}

.toc {
  position: sticky;
  top: 112px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 18px 46px rgba(24, 10, 59, 0.07);
}

.toc-title {
  margin-bottom: 18px;
  color: var(--active);
  font-size: 13px;
  font-weight: 700;
}

.toc ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}

.toc li {
  counter-increment: toc;
}

.toc a {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 8px;
  padding: 8px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.toc a::before {
  color: var(--active);
  font-size: 11px;
  font-weight: 700;
  content: counter(toc, decimal-leading-zero);
}

.toc a:hover {
  color: var(--deep);
}

article {
  min-width: 0;
}

.policy-section {
  padding: 0 0 clamp(64px, 8vw, 108px);
  scroll-margin-top: 105px;
}

.policy-section + .policy-section {
  padding-top: clamp(64px, 8vw, 108px);
  border-top: 1px solid var(--line);
}

.section-label {
  display: block;
  margin-bottom: 18px;
  color: var(--active);
  font-size: 13px;
  font-weight: 700;
}

.policy-section h2 {
  max-width: 850px;
  margin-bottom: 34px;
}

.policy-section h3 {
  margin: 48px 0 22px;
}

.policy-section p,
.policy-section li {
  max-width: 920px;
  color: var(--muted);
}

.policy-section p + p {
  margin-top: 18px;
}

.policy-section .lead {
  color: var(--deep);
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.5;
}

.policy-section a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: rgba(77, 44, 157, 0.26);
  text-underline-offset: 4px;
}

.policy-section ul {
  display: grid;
  gap: 12px;
  margin: 22px 0;
  padding-left: 24px;
}

.definition-list {
  display: grid;
  gap: 12px;
}

.definition-list > div {
  display: grid;
  grid-template-columns: minmax(180px, 0.35fr) minmax(0, 1fr);
  gap: 24px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
}

.definition-list dt {
  color: var(--primary);
  font-weight: 700;
}

.definition-list dd {
  margin: 0;
  color: var(--muted);
}

.table-wrap {
  margin: 34px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 18px 46px rgba(24, 10, 59, 0.05);
}

table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.5;
}

th,
td {
  padding: 20px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--white);
  background: var(--deep);
  font-size: 12px;
  font-weight: 700;
}

td {
  color: var(--muted);
}

tbody tr:last-child td {
  border-bottom: 0;
}

.note {
  margin-top: 28px;
  padding: 24px;
  border-left: 4px solid var(--active);
  border-radius: 0 16px 16px 0;
  color: var(--muted);
  background: var(--lavender);
}

.note strong {
  color: var(--deep);
}

.operator-card {
  display: grid;
  grid-template-columns: minmax(190px, 0.35fr) minmax(0, 1fr);
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.operator-card dt,
.operator-card dd {
  margin: 0;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.operator-card dt {
  color: var(--primary);
  background: rgba(228, 229, 247, 0.58);
  font-weight: 700;
}

.operator-card dd {
  color: var(--muted);
}

.operator-card dt:last-of-type,
.operator-card dd:last-of-type {
  border-bottom: 0;
}

.footer {
  color: rgba(255, 255, 255, 0.62);
  background: var(--deep);
}

.footer-row {
  display: flex;
  min-height: 112px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 14px;
}

@media (max-width: 920px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .hero-note {
    max-width: 560px;
  }

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

  .toc {
    position: static;
  }

  .toc ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  :root {
    --gutter: 18px;
    --radius: 20px;
  }

  body {
    font-size: 17px;
  }

  .topbar {
    height: 72px;
  }

  .brand {
    width: 158px;
  }

  .back-link {
    padding: 9px 12px;
    font-size: 12px;
  }

  .hero-grid {
    padding-block: 72px;
  }

  h1 {
    overflow-wrap: normal;
    font-size: clamp(26px, 8vw, 58px);
  }

  h2 {
    font-size: clamp(34px, 9vw, 46px);
  }

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

  .definition-list > div,
  .operator-card {
    grid-template-columns: 1fr;
  }

  .operator-card dt,
  .operator-card dd {
    border-bottom: 1px solid var(--line);
  }

  .footer-row {
    min-height: 130px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .topbar,
  .toc {
    display: none;
  }

  body {
    color: #000;
    background: #fff;
    font-size: 10pt;
  }

  .hero {
    color: #000;
    background: #fff;
  }

  .hero-grid,
  .document-shell {
    display: block;
    padding: 0;
  }

  .hero-note {
    margin-top: 24px;
    color: #000;
    border: 1px solid #bbb;
    background: #fff;
  }

  .policy-section {
    break-inside: avoid;
    padding: 28px 0;
  }

  .table-wrap {
    overflow: visible;
  }

  table {
    min-width: 0;
    font-size: 8pt;
  }
}
