/* ═══ LEGAL PAGES — Shared styles for terms, privacy, cookie, refund, AUP ═══ */
/* Matches homepage light theme style */

:root {
  --white: #ffffff;
  --bg: #fafaf8;
  --dark: #0e0e1a;
  --border: #e6e4e0;
  --text: #1a1a2e;
  --text-2: #5c5c7a;
  --text-3: #9e9eb8;
  --accent: #6C5CE7;
  --accent-light: #F0EEFF;
  --font: 'DM Sans', sans-serif;
  --serif: 'Instrument Serif', serif;
}

/* ── Reset / Base ── */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── Navbar override for legal pages ── */
.navbar { position: sticky; top: 0; z-index: 100; backdrop-filter: blur(12px); background: rgba(255,255,255,0.85); border-bottom: 1px solid var(--border); }

/* ── Hero Section ── */
.legal-hero {
  max-width: 780px;
  margin: 0 auto;
  padding: 120px 24px 48px;
  text-align: left;
}
.legal-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 8px;
}
.legal-hero h1 em {
  font-style: italic;
  color: var(--accent);
}
.legal-hero h1 em::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: 8px;
  background: var(--accent-light);
  border-radius: 4px;
  z-index: -1;
}
.legal-hero .legal-meta {
  font-size: 0.875rem;
  color: var(--text-3);
  margin-top: 4px;
}
.legal-hero .intro {
  font-size: 1.05rem;
  color: var(--text-2);
  margin-top: 12px;
  line-height: 1.7;
}

/* ── Content Container ── */
.legal-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px 80px;
  background: var(--white);
  /* No border/padding needed, content itself has clean spacing */
}

/* ── Typography ── */
.legal-content h2 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text);
  margin-top: 48px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.legal-content h2 .section-num {
  color: var(--accent);
  margin-right: 6px;
}
.legal-content h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 32px;
  margin-bottom: 10px;
}
.legal-content h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-2);
  margin-top: 24px;
  margin-bottom: 8px;
}
.legal-content p {
  margin-bottom: 16px;
  color: var(--text-2);
}
.legal-content strong {
  color: var(--text);
  font-weight: 600;
}
.legal-content em {
  font-style: italic;
}
.legal-content a {
  color: var(--accent);
  text-decoration: none;
}
.legal-content a:hover {
  text-decoration: underline;
}

/* ── Lists ── */
.legal-content ul,
.legal-content ol {
  margin: 12px 0 20px 24px;
  color: var(--text-2);
}
.legal-content li {
  margin-bottom: 8px;
}
.legal-content li strong {
  color: var(--text);
}

/* ── Tables ── */
.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 0.9rem;
  overflow-x: auto;
  display: block;
  background: var(--bg);
  border-radius: 8px;
}
@media (min-width: 600px) {
  .legal-content table { display: table; }
}
.legal-content th,
.legal-content td {
  text-align: left;
  padding: 10px 14px;
  border: 1px solid var(--border);
}
.legal-content th {
  background: var(--white);
  color: var(--text);
  font-weight: 600;
}
.legal-content td {
  color: var(--text-2);
}
.legal-content code {
  background: var(--accent-light);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.875rem;
  color: var(--accent);
}

/* ── All-Caps Block (Disclaimers) ── */
.legal-content .all-caps {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.8;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: var(--bg);
  padding: 20px 24px;
  border-radius: 8px;
  border-left: 3px solid var(--accent);
  margin: 24px 0;
}

/* ── Contact Block ── */
.legal-contact {
  margin-top: 48px;
  padding: 24px;
  background: var(--bg);
  border-radius: 12px;
  border: 1px solid var(--border);
}
.legal-contact p {
  margin-bottom: 4px;
  color: var(--text-2);
}
.legal-contact a {
  color: var(--accent);
  text-decoration: none;
}
.legal-contact a:hover {
  text-decoration: underline;
}