@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #16213a;
  --navy-2: #1f2d4d;
  --gold: #d9a441;
  --gold-soft: #f3e3bf;
  --paper: #f8f5ef;
  --card: #ffffff;
  --text: #1d2333;
  --muted: #5b6275;
  --line: #e4ded3;
  --cream: #f8f5ef;
  --radius: 14px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 17px/1.65 var(--sans);
  overflow-wrap: break-word;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration-color: var(--gold); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* Header */
.site-header { background: var(--navy); color: var(--cream); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--cream); text-decoration: none; }
.brand img { width: 44px; height: 44px; }
.nav { display: flex; gap: 4px 18px; flex-wrap: wrap; font-size: 15px; line-height: 1.4; }
.nav a { color: var(--cream); text-decoration: none; opacity: 0.85; padding: 4px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; border-bottom-color: var(--gold); }

/* Hero */
.hero { background: var(--navy); color: var(--cream); padding: 56px 0 72px; position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin: 0 0 14px; }
.hero h1 { font: 600 clamp(34px, 5vw, 54px)/1.08 var(--serif); margin: 0 0 18px; letter-spacing: -0.01em; }
.hero p.lead { font-size: 19px; color: #d9dde6; margin: 0 0 28px; max-width: 34em; }
.hero-logo { justify-self: center; width: min(320px, 100%); height: auto; aspect-ratio: 1; border-radius: 22.6%; box-shadow: 0 0 0 1px rgba(248,245,239,0.14), 0 22px 50px rgba(0,0,0,0.4); }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; border: 2px solid transparent; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: #e6b458; }
.btn-ghost { color: var(--cream); border-color: rgba(248,245,239,0.4); }
.btn-ghost:hover { border-color: var(--cream); }
.creci { margin-top: 22px; font-size: 14px; color: #b9c0cf; }

/* Sections */
section { padding: 64px 0; }
section + section { border-top: 1px solid var(--line); }
h2 { font: 600 clamp(26px, 3.4vw, 34px)/1.2 var(--serif); margin: 0 0 10px; color: var(--navy); }
.section-intro { color: var(--muted); margin: 0 0 32px; max-width: 40em; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--gold-soft); color: var(--navy); display: grid; place-items: center; margin-bottom: 16px; }
.card .icon svg { width: 24px; height: 24px; }
.card h3 { font: 600 19px/1.3 var(--sans); margin: 0 0 8px; color: var(--navy); }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

.facts { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin: 0; display: grid; grid-template-columns: 240px 1fr; }
.facts dt, .facts dd { margin: 0; padding: 14px 22px; border-top: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: 15px; }
.facts dd { font-weight: 600; color: var(--text); }
.facts dt:first-of-type, .facts dt:first-of-type + dd { border-top: 0; }

.docs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.doc-link { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-decoration: none; color: var(--text); transition: border-color .15s, transform .15s; }
.doc-link:hover { border-color: var(--gold); transform: translateY(-2px); }
.doc-link strong { display: block; font: 600 20px/1.3 var(--serif); color: var(--navy); margin-bottom: 6px; }
.doc-link span { color: var(--muted); font-size: 15px; }
.doc-link em { display: inline-block; margin-top: 14px; font-style: normal; font-weight: 600; font-size: 14px; color: var(--navy); border-bottom: 2px solid var(--gold); }

/* Legal pages */
.page-head { background: var(--navy); color: var(--cream); padding: 44px 0 40px; }
.page-head h1 { font: 600 clamp(30px, 4.4vw, 44px)/1.15 var(--serif); margin: 0 0 8px; }
.page-head p { margin: 0; color: #c9cfdb; font-size: 15px; }
.legal { padding: 44px 0 72px; }
.legal h2 { font-size: 24px; margin: 40px 0 10px; }
.legal h3 { font: 600 18px/1.4 var(--sans); margin: 26px 0 6px; color: var(--navy); }
.legal p, .legal li { color: var(--text); }
.legal ul, .legal ol { padding-left: 1.3em; }
.legal li { margin: 6px 0; }
.legal .note { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 10px; padding: 16px 20px; margin: 20px 0; }
.toc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 24px; margin: 0 0 8px; }
.toc strong { display: block; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.toc ol { margin: 0; padding-left: 1.2em; columns: 2; column-gap: 32px; }
.toc li { margin: 0; padding: 3px 0; break-inside: avoid; }
.table-wrap { overflow-x: auto; margin: 16px 0; }
table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: 10px; font-size: 16px; }
th, td { text-align: left; vertical-align: top; padding: 12px 16px; border-top: 1px solid var(--line); }
th { background: #f1ece2; font-weight: 600; color: var(--navy); border-top: 0; }
.steps { counter-reset: step; list-style: none; padding: 0 !important; }
.steps li { counter-increment: step; position: relative; padding: 16px 20px 16px 64px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin: 12px 0; }
.steps li::before { content: counter(step); position: absolute; left: 18px; top: 14px; width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: var(--cream); font-weight: 600; display: grid; place-items: center; }

/* Footer */
.site-footer { background: var(--navy); color: #c9cfdb; padding: 36px 0; font-size: 14px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer strong { color: var(--cream); }
.site-footer p { margin: 0 0 6px; }
.site-footer a { color: var(--cream); }
.site-footer nav { display: flex; flex-direction: column; gap: 6px; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; }
  .hero-logo { display: none; }
  .cards, .docs { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .facts dt { padding-bottom: 0; }
  .facts dd { border-top: 0; padding-top: 2px; }
  .facts dt:first-of-type + dd { border-top: 0; }
  .toc ol { columns: 1; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .hero { padding: 36px 0 48px; }
  section { padding: 44px 0; }
  .btn { width: 100%; justify-content: center; }
}
