/* ── Reset & Base ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #FFA62B;
  --accent: #FF8C00;
  --gradient-start: #FFA62B;
  --gradient-end: #FF6B35;
  --bg: #FFFBF5;
  --white: #FFFFFF;
  --text-dark: #1F2937;
  --text-secondary: #4B5563;
  --text-tertiary: #9CA3AF;
  --border: #F3F4F6;
  --border-medium: #E5E7EB;
  --success: #22C55E;
  --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  --container-legal: 720px;
  --container-landing: 960px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  color: var(--text-dark);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--gradient-end);
}

/* ── Nav ── */
.nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: var(--container-landing);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav-brand:hover {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--text-dark);
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 600px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    display: block;
    padding: 12px 24px;
    font-size: 15px;
  }

  .nav-links a:hover {
    background: var(--bg);
  }
}

/* ── Footer ── */
.footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  margin-top: 60px;
}

.footer-inner {
  max-width: var(--container-landing);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-brand {
  font-family: 'Fraunces', serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-logo {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-tertiary);
}

.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-secondary);
}

@media (max-width: 600px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ── Hero (Landing) ── */
.hero {
  text-align: center;
  padding: 80px 24px 60px;
  max-width: var(--container-landing);
  margin: 0 auto;
}

.hero h1 {
  font-family: 'Fraunces', serif;
  font-size: 48px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.hero h1 span {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.hero-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 24px;
}

@media (max-width: 600px) {
  .hero {
    padding: 48px 20px 40px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero p {
    font-size: 16px;
  }
}

/* ── Features (Landing) ── */
.features {
  max-width: var(--container-landing);
  margin: 0 auto;
  padding: 0 24px 60px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--card-shadow);
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.feature-card h3 {
  font-family: 'Fraunces', serif;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ── Legal Pages ── */
.legal {
  max-width: var(--container-legal);
  margin: 0 auto;
  padding: 48px 24px 60px;
}

.legal h1 {
  font-family: 'Fraunces', serif;
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 8px;
}

.legal .last-updated {
  font-size: 14px;
  color: var(--text-tertiary);
  margin-bottom: 36px;
}

.legal-section {
  margin-bottom: 28px;
}

.legal-section h2 {
  font-family: 'DM Sans', sans-serif;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.legal-section p,
.legal-section ul {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}

.legal-section ul {
  padding-left: 20px;
}

.legal-section li {
  margin-bottom: 6px;
}

.legal-section h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 20px 0 10px;
  color: var(--text-dark);
}

.legal-section table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  font-size: 14px;
}

.legal-section th,
.legal-section td {
  text-align: left;
  padding: 10px 14px;
  border: 1px solid var(--border-medium);
  color: var(--text-secondary);
  line-height: 1.5;
}

.legal-section th {
  background: var(--border);
  font-weight: 600;
  color: var(--text-dark);
  font-size: 13px;
}

@media (max-width: 600px) {
  .legal-section table {
    font-size: 13px;
  }

  .legal-section th,
  .legal-section td {
    padding: 8px 10px;
  }
}

.legal-field {
  margin-bottom: 20px;
}

.legal-field .label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.legal-field .value {
  font-size: 15px;
  color: var(--text-dark);
  line-height: 1.6;
}

@media (max-width: 600px) {
  .legal {
    padding: 32px 20px 48px;
  }

  .legal h1 {
    font-size: 26px;
  }
}

/* ── 404 ── */
.error-page {
  text-align: center;
  padding: 120px 24px;
  max-width: 480px;
  margin: 0 auto;
}

.error-page h1 {
  font-family: 'Fraunces', serif;
  font-size: 72px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
}

.error-page p {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.error-page a {
  display: inline-block;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: var(--white);
  font-weight: 600;
  font-size: 15px;
  padding: 10px 28px;
  border-radius: 10px;
  transition: opacity 0.2s;
}

.error-page a:hover {
  opacity: 0.9;
  color: var(--white);
}
