@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/fonts/manrope-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/fonts/manrope-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy: #01002a;
  --cyan: #00b3ce;
  --paper: #f4f7f9;
  --text: #101828;
  --muted: #4b5568;
  --line: #e4e9ef;
  --header: 72px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: clip;
  font-family: Manrope, system-ui, sans-serif;
  color: var(--text);
  background: var(--paper);
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--header);
  padding: env(safe-area-inset-top) max(24px, env(safe-area-inset-right)) 0
    max(24px, env(safe-area-inset-left));
  background: var(--navy);
  color: #fff;
}

.logo {
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 20px;
  margin-left: auto;
}

.site-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: #fff;
  border-radius: 8px;
  padding: 8px 12px;
  font: inherit;
}

.hero {
  padding: 88px 24px 72px;
  background:
    radial-gradient(circle at top right, rgba(0, 179, 206, 0.35), transparent 42%),
    var(--navy);
  color: #fff;
}

.hero,
.section,
.site-footer {
  padding-left: max(24px, calc((100% - 960px) / 2));
  padding-right: max(24px, calc((100% - 960px) / 2));
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0 0 12px;
  line-height: 1.15;
}

h1 {
  max-width: 12ch;
  font-size: clamp(40px, 6vw, 64px);
}

.asa-legal h1 {
  max-width: none;
}

.lead,
.section p,
.card p {
  margin: 0;
  color: var(--muted);
}

.hero .lead {
  max-width: 42rem;
  color: rgba(255, 255, 255, 0.82);
}

.button {
  display: inline-block;
  margin-top: 28px;
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--cyan);
  color: var(--navy);
  font-weight: 800;
  text-decoration: none;
}

.section {
  scroll-margin-top: var(--header);
  padding-top: 64px;
  padding-bottom: 64px;
}

.section h2 {
  font-size: 32px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.site-footer {
  padding-top: 24px;
  padding-bottom: max(24px, env(safe-area-inset-bottom));
  background: var(--navy);
  color: rgba(255, 255, 255, 0.72);
}

.site-footer p {
  margin: 0;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 12px;
}

.legal-links a {
  color: #fff;
  font-weight: 600;
}

.to-toc {
  display: none;
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    margin: 0;
    background: var(--navy);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 14px 24px;
  }

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

  .nav-toggle {
    min-width: 44px;
    min-height: 44px;
  }

  .site-nav a,
  .legal-links a {
    display: flex;
    align-items: center;
    min-height: 44px;
  }

  body .asa-legal {
    font-size: 17px;
    line-height: 1.65;
    padding: 20px max(16px, env(safe-area-inset-right)) 96px
      max(16px, env(safe-area-inset-left));
  }

  .to-toc {
    display: inline-flex;
    position: fixed;
    z-index: 5;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    align-items: center;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 999px;
    background: var(--navy);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(1, 0, 42, 0.28);
  }

  body .asa-legal h1 {
    font-size: 1.6em;
  }
}

body .asa-legal a {
  overflow-wrap: anywhere;
}

body .asa-legal h2 {
  scroll-margin-top: 16px;
}

body .asa-legal nav.asa-legal__toc {
  scroll-margin-top: 12px;
}

body .asa-legal nav.asa-legal__toc ol {
  list-style: none;
  margin-left: 0;
  padding-left: 0;
}

body .asa-legal nav.asa-legal__toc a {
  padding: 4px 0;
  text-decoration: none;
}

@media print {
  .to-toc {
    display: none;
  }
}

body .asa-legal .asa-legal__table {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
