/* VaultMail - Shared Styles */
:root {
  --purple: #7C3AED;
  --purple-light: #8B5CF6;
  --purple-dark: #6D28D9;
  --gold: #F59E0B;
  --gold-light: #FBBF24;
  --bg: #0a0a0a;
  --bg-card: #111111;
  --bg-elevated: #1a1a1a;
  --text: #e4e4e7;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;
  --border: #27272a;
  --border-light: #3f3f46;
}

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

html { scroll-behavior: smooth; }

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

a { color: var(--purple-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 800px; margin: 0 auto; padding: 0 24px; }

/* Navigation */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav__logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 20px; font-weight: 700; color: var(--text);
}
.nav__logo:hover { color: var(--text); }
.nav__logo svg { width: 28px; height: 28px; }
.nav__links { display: flex; align-items: center; gap: 24px; }
.nav__links a { font-size: 14px; color: var(--text-muted); font-weight: 500; }
.nav__links a:hover { color: var(--text); }

/* Hero */
.hero {
  padding: 160px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(124,58,237,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(124,58,237,0.1); border: 1px solid rgba(124,58,237,0.2);
  border-radius: 100px; padding: 6px 16px; margin-bottom: 24px;
  font-size: 13px; color: var(--purple-light); font-weight: 500;
}
.hero__title {
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 800; letter-spacing: -0.03em;
  line-height: 1.1; margin-bottom: 8px;
}
.hero__title span {
  background: linear-gradient(135deg, var(--purple-light), var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__tagline {
  font-size: clamp(18px, 3vw, 24px);
  color: var(--text-muted); margin-bottom: 24px;
  font-weight: 400;
}
.hero__desc {
  font-size: 17px; color: var(--text-dim); max-width: 600px;
  margin: 0 auto 40px; line-height: 1.8;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 12px;
  font-size: 16px; font-weight: 600;
  cursor: pointer; border: none; transition: all 0.3s;
}
.btn--primary {
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  color: #fff; box-shadow: 0 4px 20px rgba(124,58,237,0.3);
}
.btn--primary:hover {
  transform: translateY(-2px); color: #fff;
  box-shadow: 0 8px 30px rgba(124,58,237,0.4);
}
.btn--outline {
  background: transparent; color: var(--text-muted);
  border: 1px solid var(--border-light);
}
.btn--outline:hover {
  border-color: var(--purple-light); color: var(--text);
}
.btn-group { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Features */
.features { padding: 80px 0; }
.section__label {
  text-transform: uppercase; letter-spacing: 0.2em;
  font-size: 13px; font-weight: 600;
  color: var(--purple-light); margin-bottom: 12px;
  text-align: center;
}
.section__title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700; text-align: center;
  margin-bottom: 12px; letter-spacing: -0.02em;
}
.section__title span {
  background: linear-gradient(135deg, var(--purple-light), var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section__subtitle {
  text-align: center; color: var(--text-dim);
  max-width: 550px; margin: 0 auto 48px; font-size: 16px;
}
.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px; padding: 32px;
  transition: all 0.3s;
}
.feature-card:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
}
.feature-card__icon {
  font-size: 32px; margin-bottom: 16px;
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(124,58,237,0.1);
  border-radius: 14px;
}
.feature-card__title {
  font-size: 18px; font-weight: 600;
  margin-bottom: 8px;
}
.feature-card__desc {
  font-size: 14px; color: var(--text-dim);
  line-height: 1.7;
}

/* Divider */
.divider {
  height: 1px; border: none;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* Footer */
.footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--border);
}
.footer__inner {
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 16px;
}
.footer__left { font-size: 14px; color: var(--text-dim); }
.footer__links { display: flex; gap: 24px; }
.footer__links a { font-size: 14px; color: var(--text-muted); }
.footer__links a:hover { color: var(--text); }
.footer__contact {
  width: 100%; text-align: center;
  margin-top: 16px; padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 13px; color: var(--text-dim);
}

/* Legal Pages */
.legal { padding: 120px 0 80px; }
.legal__back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; color: var(--text-muted); margin-bottom: 32px;
}
.legal__back:hover { color: var(--purple-light); }
.legal__title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800; margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.legal__title span {
  background: linear-gradient(135deg, var(--purple-light), var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.legal__updated {
  font-size: 14px; color: var(--text-dim);
  margin-bottom: 40px;
}

/* Table of Contents */
.toc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px; padding: 24px 32px;
  margin-bottom: 48px;
}
.toc__title {
  font-size: 14px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-muted); margin-bottom: 12px;
}
.toc__list {
  list-style: none; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 8px;
}
.toc__list li a {
  font-size: 14px; color: var(--text-muted);
  display: flex; align-items: center; gap: 8px;
  padding: 4px 0;
}
.toc__list li a::before {
  content: '→'; color: var(--purple-light);
  font-size: 12px;
}
.toc__list li a:hover { color: var(--text); }

/* Legal Content */
.legal-content h2 {
  font-size: 24px; font-weight: 700;
  margin-top: 48px; margin-bottom: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--text);
}
.legal-content h2:first-of-type { margin-top: 0; border-top: none; padding-top: 0; }
.legal-content h3 {
  font-size: 18px; font-weight: 600;
  margin-top: 24px; margin-bottom: 12px;
  color: var(--text);
}
.legal-content p {
  color: var(--text-muted); margin-bottom: 16px; font-size: 15px;
}
.legal-content ul, .legal-content ol {
  padding-left: 24px; margin-bottom: 16px;
}
.legal-content li {
  color: var(--text-muted); margin-bottom: 8px; font-size: 15px;
}
.legal-content strong { color: var(--text); font-weight: 600; }
.legal-content a { color: var(--purple-light); }
.legal-content .highlight {
  background: rgba(124,58,237,0.08);
  border: 1px solid rgba(124,58,237,0.15);
  border-radius: 10px; padding: 20px 24px;
  margin: 20px 0;
}
.legal-content .highlight p { margin-bottom: 0; }

/* Responsive */
@media (max-width: 768px) {
  .nav__links { gap: 16px; }
  .hero { padding: 130px 0 60px; }
  .features__grid { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; text-align: center; }
  .footer__links { justify-content: center; }
  .toc__list { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .nav__links a:not(:last-child) { display: none; }
  .btn { padding: 12px 24px; font-size: 15px; }
}
