:root {
  --cream: #fffafc;
  --paper: rgba(255, 255, 255, 0.76);
  --line: rgba(233, 224, 246, 0.95);
  --ink: #19141f;
  --muted: #746a82;
  --lavender: #f3ebff;
  --pink: #ffe8f2;
  --purple: #8f7bd8;
  --purple-soft: #b7a8f3;
  --yellow: #ffd97c;
  --shadow: rgba(122, 100, 190, 0.16);
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: "Avenir Next", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.96), transparent 28%),
    radial-gradient(circle at 18% 22%, rgba(255, 233, 243, 0.85), transparent 24%),
    radial-gradient(circle at 82% 18%, rgba(236, 227, 255, 0.92), transparent 24%),
    linear-gradient(180deg, #fffdfd 0%, var(--cream) 44%, #f7f1ff 100%);
  -webkit-font-smoothing: antialiased;
}

body::before,
body::after {
  position: fixed;
  width: 18rem;
  height: 18rem;
  content: "";
  border-radius: 999px;
  filter: blur(24px);
  pointer-events: none;
}

body::before {
  top: 8rem;
  left: -6rem;
  background: rgba(255, 218, 232, 0.55);
}

body::after {
  right: -5rem;
  bottom: 2rem;
  background: rgba(201, 187, 255, 0.5);
}

a {
  color: inherit;
  text-decoration: none;
}

.nav,
.footer {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 32px), 1080px);
  margin: 0 auto;
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
  padding: 14px 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 18px 40px -30px var(--shadow);
}

.nav-logo {
  font-family: var(--serif);
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.nav-note {
  color: var(--muted);
  font-size: 0.95rem;
}

.hero {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 0;
  width: min(calc(100% - 32px), 980px);
  margin: 0 auto;
  padding: 40px 20px 18px;
  text-align: center;
}

.hero-icon {
  width: min(116px, 24vw);
  height: auto;
  margin-bottom: 20px;
  border-radius: 32px;
  box-shadow: 0 30px 60px -32px rgba(151, 126, 223, 0.4);
}

h1 {
  max-width: 12ch;
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 5.8rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.05em;
}

h1 em {
  color: var(--purple);
  font-style: italic;
}

.headline-nowrap {
  white-space: nowrap;
}

@media (max-width: 560px) {
  .headline-nowrap {
    white-space: normal;
  }
}

.hero-copy {
  max-width: 35rem;
  margin: 0 0 20px;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  line-height: 1.6;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.96rem;
  font-weight: 600;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--yellow), #ffc8d9);
  color: #34254f;
  box-shadow: 0 18px 34px -24px rgba(255, 191, 120, 0.9);
}

.button-download {
  min-width: 240px;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.74);
  border-color: var(--line);
  color: var(--ink);
}

.button-small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.88rem;
  font-weight: 500;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 0 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.legal-body {
  min-height: 100vh;
}

.legal-shell {
  width: min(calc(100% - 32px), 820px);
  margin: 32px auto;
  padding: 24px;
}

.legal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.legal-card {
  padding: 30px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 32px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 22px 46px -34px var(--shadow);
}

.legal-card h1 {
  max-width: none;
  font-size: clamp(2.6rem, 7vw, 4.2rem);
  margin-bottom: 16px;
}

.legal-card h2,
.legal-card h3 {
  margin: 28px 0 10px;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.legal-card h2 {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 400;
}

.legal-card h3 {
  font-size: 1.02rem;
  font-weight: 700;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
  line-height: 1.75;
  font-size: 1rem;
}

.legal-card a {
  color: var(--purple);
}

.legal-card ul {
  margin: 18px 0;
  padding-left: 22px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--purple);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.legal-note {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(255, 245, 210, 0.82);
  border: 1px solid rgba(255, 228, 145, 0.95);
  color: #73551a;
}

@media (max-width: 720px) {
  .nav,
  .footer,
  .legal-shell {
    width: min(calc(100% - 20px), 1080px);
  }

  .nav,
  .footer,
  .legal-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    min-height: auto;
    flex: initial;
    padding-top: 34px;
    padding-bottom: 22px;
  }

  .hero-actions {
    width: 100%;
  }

  .button {
    width: 100%;
  }

  .footer-links {
    width: 100%;
  }
}
