/* ═══════════════════════════════════════════════════════════
   AI Writer — Global Stylesheet
   Charcoal + Gold brand palette · Mobile-first responsive
   ═══════════════════════════════════════════════════════════ */

/* ─── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ─── Variables ─────────────────────────────────────────── */
:root {
  --bg:          #0F1012;
  --surface:     #1A1B1F;
  --card:        #222328;
  --border:      #2E2F35;
  --gold:        #C8A961;
  --gold-light:  #D4BA70;
  --gold-dim:    rgba(200,169,97,.12);
  --text:        #E8E8EC;
  --text-sec:    #9D9EA2;
  --text-muted:  #6B6D75;
  --white:       #FFFFFF;
  --danger:      #E53E3E;
  --radius:      14px;
  --max-w:       860px;
}

/* ─── Base ──────────────────────────────────────────────── */
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-light); text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ─── Layout ────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* ─── Navigation ────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(15,16,18,.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 62px;
}
.nav-brand {
  font-size: 20px; font-weight: 700; color: var(--gold);
  letter-spacing: -.3px;
}
.nav-links { display: flex; gap: 24px; list-style: none; }
.nav-links a { color: var(--text-sec); font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--gold); text-decoration: none; }

/* hamburger (mobile) */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--text);
  margin: 5px 0; border-radius: 2px; transition: .3s;
}

@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; flex-direction: column; gap: 0;
    position: absolute; top: 62px; left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-links li a {
    display: block; padding: 14px 20px; border-bottom: 1px solid var(--border);
  }
}

/* ─── Hero ──────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 90px 20px 70px;
}
.hero h1 {
  font-size: clamp(34px, 6vw, 52px);
  font-weight: 800; color: var(--gold);
  letter-spacing: -.5px; margin-bottom: 18px;
}
.hero p {
  font-size: 18px; color: var(--text-sec);
  max-width: 580px; margin: 0 auto 36px;
}
.btn {
  display: inline-block;
  background: var(--gold); color: var(--bg);
  padding: 14px 42px; border-radius: 30px;
  font-size: 16px; font-weight: 600;
  transition: background .2s, transform .15s;
}
.btn:hover { background: var(--gold-light); transform: translateY(-1px); text-decoration: none; color: var(--bg); }

/* ─── Features Grid ─────────────────────────────────────── */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  padding: 0 0 80px;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color .25s, transform .2s;
}
.feature-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
}
.feature-card .icon { font-size: 28px; margin-bottom: 12px; }
.feature-card h3 { font-size: 17px; color: var(--white); margin-bottom: 8px; }
.feature-card p  { font-size: 14px; color: var(--text-sec); line-height: 1.55; }

/* ─── Legal Page Layout ─────────────────────────────────── */
.legal-hero {
  padding: 60px 0 30px; text-align: center;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}
.legal-hero h1 { font-size: 32px; color: var(--gold); margin-bottom: 6px; }
.legal-hero .date { font-size: 14px; color: var(--text-muted); }

.legal-body { padding-bottom: 80px; }
.legal-body h2 {
  font-size: 20px; color: var(--white);
  margin: 40px 0 14px; padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.legal-body h3 { font-size: 17px; color: var(--gold-light); margin: 24px 0 10px; }
.legal-body p  { margin-bottom: 16px; color: var(--text-sec); }
.legal-body ul, .legal-body ol {
  margin: 10px 0 18px 26px; color: var(--text-sec);
}
.legal-body li { margin-bottom: 8px; }
.legal-body li strong { color: var(--text); }
.legal-body .highlight {
  background: var(--gold-dim);
  border-left: 3px solid var(--gold);
  padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0;
  margin: 20px 0;
}
.legal-body .highlight p { margin-bottom: 0; color: var(--text); }
.legal-body a { text-decoration: underline; }

/* ─── Footer ────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  text-align: center;
}
.footer-links { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; margin-bottom: 14px; }
.footer-links a { color: var(--text-muted); font-size: 14px; }
.footer-links a:hover { color: var(--gold); }
.footer .copy { font-size: 13px; color: var(--text-muted); }

/* ─── Utilities ─────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mb-4 { margin-bottom: 32px; }
