/* ─── Memiria — shared stylesheet ─────────────────────────────────────────── */

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

:root {
  --bg:           #060C1A;
  --surface:      #0B1226;
  --border:       rgba(255, 255, 255, 0.07);
  --text:         #EBE9F8;
  --text-sub:     #B2AECF;
  --text-muted:   #7A78A2;
  --text-faint:   #3E3C60;
  --accent:       #E4C25C;
  --serif:        Georgia, 'Times New Roman', serif;
  --sans:         -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  min-height: 100vh;
}

/* Ambient warm glow at top */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(228,194,92,0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ─── Nav ────────────────────────────────────────────────────────────────── */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 48px;
  position: relative;
  z-index: 1;
}

.nav-wordmark {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 400;
  letter-spacing: 1.8px;
  color: var(--text);
  text-decoration: none;
}

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

.nav-links a {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

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

/* ─── Hero ───────────────────────────────────────────────────────────────── */

.hero {
  padding: 72px 48px 88px;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(38px, 6vw, 58px);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.5px;
  color: var(--text);
  margin-bottom: 28px;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-sub {
  font-size: 17px;
  color: var(--text-sub);
  line-height: 1.75;
  max-width: 460px;
  margin: 0 auto 48px;
}

.cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.cta-btn {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.2px;
  padding: 15px 36px;
  border-radius: 12px;
  text-decoration: none;
  transition: opacity 0.15s;
}

.cta-btn:hover {
  opacity: 0.88;
}

.cta-note {
  font-size: 12px;
  color: var(--text-faint);
  letter-spacing: 0.3px;
}

/* ─── Features ───────────────────────────────────────────────────────────── */

.features {
  display: flex;
  gap: 16px;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 48px 120px;
  position: relative;
  z-index: 1;
}

.feature {
  flex: 1;
  padding: 28px 24px;
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--border);
}

.feature-accent {
  width: 24px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  margin-bottom: 20px;
  opacity: 0.7;
}

.feature h3 {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 10px;
}

.feature p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ─── Footer ─────────────────────────────────────────────────────────────── */

footer {
  border-top: 1px solid var(--border);
  padding: 48px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.footer-wordmark {
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 2.5px;
  color: var(--text-faint);
  margin-bottom: 20px;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-nav a:hover {
  color: var(--text);
}

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

/* ─── Legal pages ────────────────────────────────────────────────────────── */

.legal-wrap {
  max-width: 700px;
  margin: 0 auto;
  padding: 48px 48px 120px;
  position: relative;
  z-index: 1;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 52px;
  transition: color 0.15s;
}

.back-link:hover {
  color: var(--text);
}

.legal-title {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 10px;
}

.legal-updated {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 56px;
}

.legal-wrap h2 {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 400;
  color: var(--text);
  margin: 48px 0 14px;
}

.legal-wrap p {
  font-size: 15px;
  color: var(--text-sub);
  line-height: 1.8;
  margin-bottom: 16px;
}

.legal-wrap ul {
  padding-left: 22px;
  margin-bottom: 16px;
}

.legal-wrap li {
  font-size: 15px;
  color: var(--text-sub);
  line-height: 1.8;
  margin-bottom: 8px;
}

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

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

/* ─── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 680px) {
  .nav {
    padding: 20px 24px;
  }

  .hero {
    padding: 56px 24px 72px;
  }

  .features {
    flex-direction: column;
    padding: 0 24px 80px;
  }

  .legal-wrap {
    padding: 40px 24px 80px;
  }

  footer {
    padding: 40px 24px;
  }
}
