*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --purple: #6C5CE7;
  --purple-light: #a29bfe;
  --bg: #fafafa;
  --text: #2d3436;
  --text-muted: #636e72;
  --border: #dfe6e9;
  --white: #ffffff;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── Layout ── */

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* ── Landing page ── */

.landing {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  padding: 32px 24px;
}

.landing .logo {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  background: var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  box-shadow: 0 8px 32px rgba(108, 92, 231, 0.25);
}

.landing .logo svg {
  width: 48px;
  height: 48px;
}

.landing h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.landing .tagline {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.landing .links {
  display: flex;
  gap: 24px;
}

.landing .links a {
  color: var(--purple);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: opacity 0.2s;
}

.landing .links a:hover {
  opacity: 0.7;
}

/* ── Legal pages ── */

.legal-header {
  margin-bottom: 40px;
}

.legal-header a.back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--purple);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 24px;
  transition: opacity 0.2s;
}

.legal-header a.back:hover {
  opacity: 0.7;
}

.legal-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.legal-header .effective {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.legal h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 36px;
  margin-bottom: 12px;
}

.legal p {
  margin-bottom: 16px;
  color: var(--text);
}

.legal ul,
.legal ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.legal li {
  margin-bottom: 8px;
}

.legal a {
  color: var(--purple);
  text-decoration: none;
}

.legal a:hover {
  text-decoration: underline;
}

.legal strong {
  font-weight: 600;
}

.legal .contact {
  margin-top: 40px;
  padding: 20px 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.legal .contact p {
  margin-bottom: 4px;
}

.legal .contact p:last-child {
  margin-bottom: 0;
}

/* ── Footer ── */

.footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ── Mobile ── */

@media (max-width: 480px) {
  .container {
    padding: 32px 20px 64px;
  }

  .landing h1 {
    font-size: 2rem;
  }

  .legal-header h1 {
    font-size: 1.6rem;
  }
}
