:root {
  --paper: #f7f4ee;
  --surface: #ffffff;
  --ink: #17202b;
  --muted: #606873;
  --brand: #183b66;
  --brand-light: #2d6cdf;
  --nova: #e32932;
  --line: rgba(24, 59, 102, .14);
  --shadow: 0 20px 60px rgba(24, 59, 102, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 9% 2%, rgba(45, 108, 223, .09), transparent 29%),
    radial-gradient(circle at 92% 15%, rgba(227, 41, 50, .06), transparent 23%),
    var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

a { color: var(--brand-light); text-underline-offset: 3px; }
a:hover, a:focus-visible { color: var(--brand); }
.wrap { width: min(1080px, calc(100% - 36px)); margin: 0 auto; }
.site-header { padding: 24px 0; }
.top-navigation { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { display: block; width: 210px; height: auto; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  padding: 10px 16px;
  color: var(--brand);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

main { padding: 38px 0 80px; }
.intro { max-width: 820px; margin-bottom: 34px; }
.eyebrow { margin: 0 0 10px; color: var(--nova); font-size: 13px; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(42px, 7vw, 74px); line-height: .99; letter-spacing: -.055em; }
.lead { margin: 22px 0 0; color: var(--muted); font-size: 18px; }
.updated { margin: 14px 0 0; color: var(--muted); font-size: 14px; }

.document-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; align-items: start; }
.summary {
  position: sticky;
  top: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, .9);
  padding: 22px;
  box-shadow: var(--shadow);
}
.summary strong { display: block; margin-bottom: 12px; color: var(--brand); }
.summary nav { display: grid; gap: 7px; }
.summary a { color: var(--muted); font-size: 13px; font-weight: 700; text-decoration: none; }
.summary a:hover, .summary a:focus-visible { color: var(--brand-light); }
.document { display: grid; gap: 18px; }
.legal-section {
  scroll-margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, .94);
  padding: clamp(24px, 4vw, 38px);
  box-shadow: var(--shadow);
}
.legal-section h2 { margin: 0 0 16px; color: var(--brand); font-size: 23px; line-height: 1.25; }
.legal-section h3 { margin: 24px 0 9px; font-size: 17px; line-height: 1.35; }
.legal-section p { margin: 0 0 13px; }
.legal-section p:last-child { margin-bottom: 0; }
.legal-section ul, .legal-section ol { margin: 12px 0; padding-left: 22px; }
.legal-section li + li { margin-top: 7px; }
.notice { border-left: 4px solid var(--nova); padding: 2px 0 2px 16px; color: var(--muted); }
.definition-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.definition {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(247, 244, 238, .55);
  padding: 16px;
}
.definition strong { display: block; margin-bottom: 5px; color: var(--brand); }
.definition p { color: var(--muted); font-size: 14px; }

.offer-selector { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 24px; }
.offer-link {
  display: flex;
  min-height: 120px;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .85);
  padding: 17px;
  color: var(--ink);
  text-decoration: none;
}
.offer-link span { color: var(--muted); font-size: 12px; font-weight: 750; }
.offer-link strong { color: var(--brand); font-size: 19px; }
.offer-link.is-selected { border-color: var(--brand-light); background: var(--brand); color: white; box-shadow: 0 15px 40px rgba(24, 59, 102, .22); }
.offer-link.is-selected strong, .offer-link.is-selected span { color: white; }
.formula-detail { border: 1px solid var(--line); border-radius: 18px; padding: 19px; }
.formula-detail + .formula-detail { margin-top: 12px; }
.formula-detail.is-selected { border-color: var(--brand-light); box-shadow: inset 4px 0 0 var(--nova); }
.formula-title { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; margin-bottom: 8px; }
.formula-title h3 { margin: 0; color: var(--brand); font-size: 20px; }
.formula-title strong { white-space: nowrap; color: var(--nova); }

.legal-links { display: flex; flex-wrap: wrap; gap: 10px 16px; }
.legal-links a { color: var(--brand); font-weight: 800; text-decoration: none; }
.legal-links a[aria-current="page"] { color: var(--nova); }
.site-footer { padding: 0 0 48px; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: end; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer-meta { text-align: right; }

@media (max-width: 900px) {
  .document-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .summary nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .offer-selector { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .brand img { width: 165px; }
  .definition-grid, .offer-selector { grid-template-columns: 1fr; }
  .summary nav { grid-template-columns: 1fr; }
  .formula-title, .footer-inner { align-items: flex-start; grid-template-columns: 1fr; flex-direction: column; }
  .formula-title { display: flex; }
  .footer-meta { text-align: left; }
}

@media print {
  body { background: white; color: black; font-size: 11pt; }
  .site-header, .summary, .offer-selector, .site-footer { display: none; }
  main { padding: 0; }
  .wrap { width: 100%; }
  .document-layout { display: block; }
  .legal-section { break-inside: avoid; border: 0; border-radius: 0; box-shadow: none; padding: 14px 0; }
}
