:root {
  --teal-900: #162d38;
  --teal-800: #213f4d;
  --teal-700: #2d5264;
  --teal-600: #3a677d;
  --teal-500: #4d85a1;
  --teal-100: #e2f0fa;
  --mint: #a8dd9e;
  --mint-soft: #d9f1d2;
  --bg: #f4f9fc;
  --surface: #ffffff;
  --ink: #162d38;
  --muted: #5a7480;
  --border: #dce8f0;
  --shadow: 0 1px 2px rgba(22, 45, 56, 0.04), 0 12px 32px rgba(22, 45, 56, 0.06);
  --radius: 18px;
  --maxw: 760px;
  --font-display: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--teal-600); text-decoration: none; }
a:hover { color: var(--teal-800); text-decoration: underline; }

/* ---------- Site header (legal pages) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-header img { height: 30px; width: auto; display: block; }
.site-nav { display: flex; gap: 22px; font-size: 15px; font-weight: 500; }
.site-nav a { color: var(--muted); }
.site-nav a:hover { color: var(--teal-600); text-decoration: none; }

/* ---------- Legal article ---------- */
.doc {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 56px 24px 96px;
}
.doc h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 5vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}
.doc h1::after {
  content: "";
  display: block;
  width: 64px;
  height: 5px;
  margin-top: 18px;
  border-radius: 999px;
  background: var(--mint);
}
.doc h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--teal-700);
  margin: 44px 0 12px;
}
.doc h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--teal-800);
  margin: 28px 0 8px;
}
.doc p, .doc li { font-size: 16.5px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 8px 0; }
.doc li::marker { color: var(--teal-500); }
.doc strong { color: var(--teal-900); }

.updated {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--teal-700);
  background: var(--teal-100);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 28px;
}
.updated::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--mint);
}

.lead { font-size: 18px; color: var(--muted); }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
  background: var(--teal-100);
  color: var(--teal-800);
  padding: 2px 7px;
  border-radius: 6px;
}

.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--mint);
  border-radius: 12px;
  padding: 18px 22px;
  margin: 24px 0;
  box-shadow: var(--shadow);
}
.callout p:first-child { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.site-footer .wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 32px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: var(--muted);
}
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--teal-600); }

/* ---------- Landing ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 50% -10%, var(--teal-500) 0%, transparent 60%),
    linear-gradient(160deg, var(--teal-600) 0%, var(--teal-800) 100%);
  color: #fff;
  text-align: center;
  padding: 92px 24px 104px;
}
.hero img { height: 60px; width: auto; margin: 0 auto 28px; display: block; }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 5vw, 40px);
  letter-spacing: -0.02em;
  margin: 0 auto 14px;
  max-width: 16ch;
  line-height: 1.2;
}
.hero p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 auto;
  max-width: 46ch;
}

.cards {
  max-width: var(--maxw);
  margin: -56px auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  position: relative;
  z-index: 2;
}
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 26px 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 2px 4px rgba(22, 45, 56, 0.05), 0 18px 44px rgba(22, 45, 56, 0.12);
  text-decoration: none;
}
.card .ico {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--mint-soft);
  color: var(--teal-700);
  display: grid;
  place-items: center;
  margin-bottom: 4px;
}
.card h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  color: var(--teal-900);
  margin: 0;
}
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card .go {
  margin-top: 6px;
  font-weight: 600;
  font-size: 14px;
  color: var(--teal-600);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.landing-foot {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  padding: 64px 24px 48px;
}
.landing-foot a { color: var(--muted); }
