:root {
  --bg: #CDD3DC;
  --surface: #FFFFFF;
  --text: #1F2937;
  --text-muted: #4B5563;
  --link: #2A4A7F;
  --link-hover: #1E365B;
  --cta: #F5C518;
  --cta-hover: #E0B214;
  --cta-text: #1F2937;
  --border: #B7BFCC;
  --footer-bg: #1F2937;
  --footer-text: #E5E7EB;
  --footer-muted: #9CA3AF;
  --max-width: 1120px;
  --radius: 8px;
  --shadow: 0 4px 12px rgba(31, 41, 55, 0.08);
}

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

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

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

h1,
h2,
h3,
h4 {
  color: var(--text);
  line-height: 1.25;
  margin: 0 0 0.5em;
  font-weight: 700;
}

h1 {
  font-size: 44px;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 30px;
  letter-spacing: -0.005em;
}

h3 {
  font-size: 20px;
}

p {
  margin: 0 0 1em;
}

ul,
ol {
  margin: 0 0 1em;
  padding-left: 1.4em;
}

li {
  margin-bottom: 0.4em;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.cta-button {
  display: inline-block;
  background: var(--cta);
  color: var(--cta-text);
  font-weight: 700;
  font-size: 17px;
  padding: 16px 36px;
  border-radius: var(--radius);
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: background-color 150ms ease, transform 150ms ease;
  min-height: 56px;
  line-height: 24px;
}

.cta-button:hover,
.cta-button:focus-visible {
  background: var(--cta-hover);
  color: var(--cta-text);
  transform: translateY(-1px);
}

.site-header {
  padding: 28px 0 12px;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.brand {
  font-weight: 700;
  font-size: 20px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.hero {
  padding: 64px 0 80px;
  text-align: center;
}

.hero h1 {
  max-width: 760px;
  margin: 0 auto 20px;
}

.hero p.subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 36px;
}

.hero .cta-row {
  margin-bottom: 18px;
}

.hero .trust {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

.section {
  padding: 64px 0;
}

.section.alt {
  background: var(--surface);
}

.section-title {
  text-align: center;
  margin-bottom: 16px;
}

.section-lead {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
  color: var(--text-muted);
  font-size: 17px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
}

.section.alt .feature {
  background: var(--bg);
  border-color: transparent;
  box-shadow: none;
}

.feature h3 {
  margin-bottom: 8px;
}

.feature p {
  margin: 0;
  color: var(--text-muted);
}

.feature-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 16px;
  color: var(--link);
}

.cta-section {
  text-align: center;
  padding: 80px 0 96px;
}

.cta-section h2 {
  margin-bottom: 28px;
}

.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 48px 0 24px;
  font-size: 14px;
}

.site-footer .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.footer-entity h4 {
  color: var(--footer-text);
  margin: 0 0 8px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-entity p {
  margin: 0 0 4px;
  color: var(--footer-muted);
}

.footer-entity a {
  color: var(--footer-text);
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

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

.footer-links a:hover {
  text-decoration: underline;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 24px auto 0;
  padding: 16px 24px 0;
  border-top: 1px solid rgba(229, 231, 235, 0.15);
  color: var(--footer-muted);
  text-align: center;
}

.legal-doc {
  background: var(--surface);
  margin: 32px auto;
  padding: 48px 56px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.legal-doc h1 {
  font-size: 32px;
  margin-bottom: 8px;
}

.legal-doc h2 {
  font-size: 22px;
  margin-top: 32px;
  scroll-margin-top: 24px;
}

.legal-doc h3 {
  font-size: 17px;
  margin-top: 20px;
}

.legal-doc .subtitle {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.legal-doc ol.toc {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 20px 20px 20px 44px;
  margin-bottom: 32px;
}

.legal-doc ol.toc li {
  margin-bottom: 6px;
}

.legal-doc p {
  margin-bottom: 14px;
}

.legal-back {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 14px;
}

@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .legal-doc {
    padding: 40px 36px;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 24px;
  }

  .hero {
    padding: 48px 0 56px;
  }

  .section {
    padding: 48px 0;
  }

  .cta-section {
    padding: 56px 0 64px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .site-footer .container {
    grid-template-columns: 1fr;
  }

  .footer-links {
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
  }

  .legal-doc {
    margin: 16px auto;
    padding: 28px 20px;
    border-radius: 0;
  }

  .legal-doc h1 {
    font-size: 26px;
  }
}

@media (max-width: 420px) {
  .container {
    padding: 0 18px;
  }

  .cta-button {
    padding: 14px 24px;
    width: 100%;
    text-align: center;
  }
}
