@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg: #FAFAFD;
  --card: #FFFFFF;
  --text: #1A1733;
  --muted: #6E6A85;
  --purple: #7C3AED;
  --purple-mid: #4C1D95;
  --purple-deep: #2A1060;
  --purple-soft: #F0EAFE;
  --orange: #F59E0B;
  --blue: #3B82F6;
  --green: #10B981;
  --ring: rgba(124, 58, 237, 0.18);
  --shadow-sm: 0 1px 2px rgba(42, 16, 96, 0.05), 0 2px 6px rgba(42, 16, 96, 0.05);
  --shadow-md: 0 10px 30px -8px rgba(42, 16, 96, 0.16);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container { max-width: 900px; margin: 0 auto; padding: 0 28px; }
.container.wide { max-width: 1080px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 96px 24px 80px;
  color: #fff;
  background: radial-gradient(120% 100% at 50% -10%, #6D28D9 0%, #4C1D95 45%, var(--purple-deep) 100%);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(90% 90% at 50% 0%, #000 30%, transparent 100%);
  mask-image: radial-gradient(90% 90% at 50% 0%, #000 30%, transparent 100%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(32px, 6vw, 52px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
  text-wrap: balance;
}
.hero p {
  font-size: 18px;
  font-weight: 500;
  opacity: 0.88;
  max-width: 560px;
  margin: 0 auto;
  text-wrap: pretty;
}
.hero .badge {
  display: inline-block;
  margin-bottom: 20px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.3);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ---------- Page header (legal pages) ---------- */
header.page {
  text-align: center;
  padding: 64px 24px 40px;
  color: #fff;
  background: radial-gradient(120% 120% at 50% -20%, #6D28D9 0%, #4C1D95 50%, var(--purple-deep) 100%);
}
header.page h1 { font-size: clamp(28px, 4.4vw, 38px); font-weight: 800; letter-spacing: -0.02em; }
header.page p { opacity: 0.85; margin-top: 6px; }
header.page .last-updated { font-size: 13px; opacity: 0.7; margin-top: 12px; }

/* ---------- Sections & cards ---------- */
.section { padding: 56px 0 8px; }
.section h2 { font-size: clamp(24px, 3.4vw, 30px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 8px; }
.section > .container > p.lead { color: var(--muted); margin-bottom: 26px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.card {
  background: var(--card);
  border: 1px solid #F0EDF8;
  border-radius: 20px;
  padding: 24px 22px;
  box-shadow: var(--shadow-sm);
}
.card .icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; font-size: 24px;
  border-radius: 14px; margin-bottom: 14px;
  background: var(--purple-soft);
}
.card:nth-child(2) .icon { background: #FFF4E0; }
.card:nth-child(3) .icon { background: #E7FBF3; }
.card h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 6px; }
.card p { font-size: 14px; color: var(--muted); }

/* ---------- Legal typography ---------- */
main.legal { padding: 40px 0 72px; }
main.legal h2 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 34px 0 10px;
  padding-top: 8px;
}
main.legal h3 { font-size: 16px; font-weight: 700; margin: 22px 0 6px; }
main.legal p, main.legal li { font-size: 15px; color: #33304A; margin-bottom: 10px; }
main.legal ul { padding-left: 22px; margin-bottom: 14px; }
main.legal li { margin-bottom: 7px; }
main.legal a { color: var(--purple); text-decoration: none; font-weight: 500; }
main.legal a:hover { text-decoration: underline; }
main.legal strong { font-weight: 700; }

.summary {
  background: var(--purple-soft);
  border: 1px solid #E4D9FC;
  border-radius: 16px;
  padding: 18px 20px;
  margin: 6px 0 12px;
  font-size: 14.5px;
  color: #3A2A66;
}
.summary strong { color: var(--purple-mid); }

.note {
  background: #FFF8EC;
  border: 1px solid #FBE3B8;
  border-radius: 16px;
  padding: 16px 18px;
  margin: 18px 0;
  font-size: 14px;
  color: #6B4B12;
}

/* ---------- Footer ---------- */
footer {
  text-align: center;
  padding: 34px 24px;
  background: var(--card);
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid #EEEBF7;
}
footer a { color: var(--purple); text-decoration: none; font-weight: 500; }
footer a:hover { text-decoration: underline; }
footer .links { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-bottom: 10px; }

a:focus-visible, summary:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; border-radius: 6px; }

@media (max-width: 600px) {
  .hero { padding: 68px 20px 56px; }
  header.page { padding: 48px 20px 32px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
