@font-face {
  font-family: "Averta";
  src: url("../fonts/averta-regular.woff2") format("woff2"),
       url("../fonts/averta-regular.woff") format("woff");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

:root {
  --brand-blue: #3a60aa;
  --brand-dark: #12192d;
  --surface: #f7f9fb;
  --card: #ffffff;
  --muted: #4c566b;
  --border: #cbd5e1;
  --soft-blue: #e3e9f5;
  --footer-link: #a2a2a2;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--surface);
  color: var(--brand-dark);
  font-family: "Averta", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  margin: 0;
}

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

.site-header {
  background: rgba(247, 249, 251, 0.96);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header__inner {
  align-items: center;
  display: flex;
  gap: 28px;
  height: 80px;
  margin: 0 auto;
  max-width: 1200px;
  padding: 0 40px;
}

.brand-logo {
  display: block;
  height: auto;
  width: 220px;
}

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

.site-nav a {
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--brand-blue);
}

.legal-main {
  margin: 0 auto;
  max-width: 980px;
  padding: 80px 32px 100px;
}

.legal-intro {
  margin-bottom: 44px;
}

.eyebrow {
  color: var(--brand-blue);
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--brand-dark);
  line-height: 1.2;
  margin-top: 0;
}

h1 {
  font-size: 52px;
  margin-bottom: 18px;
}

h2 {
  font-size: 27px;
  margin-bottom: 18px;
}

h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

h4 {
  color: var(--brand-dark);
  font-size: 17px;
  line-height: 1.35;
  margin: 0 0 10px;
}

p,
ul {
  margin: 0 0 18px;
}

.lead {
  color: var(--muted);
  font-size: 19px;
  max-width: 720px;
}

.notice {
  background: var(--soft-blue);
  border: 1px solid #c2cee7;
  border-radius: 12px;
  margin-bottom: 28px;
  padding: 20px 24px;
}

.notice strong {
  display: block;
  margin-bottom: 4px;
}

.legal-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(18, 25, 45, 0.05);
  padding: 44px;
}

.legal-card > section + section {
  border-top: 1px solid var(--border);
  margin-top: 34px;
  padding-top: 34px;
}

.content-placeholder {
  color: var(--muted);
  font-style: italic;
  margin: 0;
}

.legal-content h2 {
  margin-top: 46px;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  margin-top: 34px;
}

.legal-content h4 {
  margin-top: 26px;
}

.legal-content p,
.legal-content li,
.legal-content a {
  overflow-wrap: anywhere;
}

.legal-content ul {
  padding-left: 24px;
}

.legal-content li + li {
  margin-top: 8px;
}

.placeholder {
  background: var(--soft-blue);
  border-radius: 4px;
  color: #2b4b87;
  display: inline-block;
  font-weight: 600;
  padding: 1px 6px;
}

.legal-list {
  padding-left: 24px;
}

.legal-list li + li {
  margin-top: 8px;
}

.site-footer {
  background: var(--brand-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 52px 40px;
}

.site-footer__inner {
  display: flex;
  justify-content: flex-end;
  margin: 0 auto;
  max-width: 1200px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  justify-content: flex-end;
}

.footer-nav a {
  color: var(--footer-link);
  text-decoration: none;
}

.footer-nav a:hover,
.footer-nav a:focus-visible,
.footer-nav a[aria-current="page"] {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-color: var(--brand-blue);
}

@media (max-width: 700px) {
  .site-header__inner {
    gap: 16px;
    padding: 0 20px;
  }

  .brand-logo {
    width: 170px;
  }

  .site-nav {
    gap: 16px;
  }

  .site-nav a:first-child {
    display: none;
  }

  .legal-main {
    padding: 56px 20px 72px;
  }

  h1 {
    font-size: 38px;
  }

  .legal-card {
    border-radius: 12px;
    padding: 26px 22px;
  }

  .site-footer {
    padding: 40px 20px;
  }
}
