/* Songai Media — shared legal page styles
   Used by: terms-conditions.html, privacy-policy.html, cookie-policy.html,
            ai-safety-ethics.html, refund-policy.html, about.html, affiliates.html
*/
:root {
  --blue: #245DFF;
  --indigo: #1B1740;
  --platinum: #D7D2CB;
  --ember: #FF6B57;
  --ink: #000000;
  --ink-2: rgba(10,10,15,0.62);
  --ink-3: rgba(10,10,15,0.42);
  --line: rgba(10,10,15,0.08);
  --soft-white: #F5F5F3;
  --radius: 14px;
  --radius-lg: 22px;
  --max: 880px;
  --font: 'Noto Sans Display', system-ui, -apple-system, 'Inter', sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--soft-white);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-weight: 500; line-height: 1.1; letter-spacing: -0.02em; }
.blue { color: var(--blue); }

/* NAV */
nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(245,245,243,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px clamp(20px, 4vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo-wrap { display: inline-flex; align-items: center; }
.brand-logo {
  height: 40px;
  width: auto;
  display: block;
  transform: translateY(2px);
}
.nav-back {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  transition: color 0.2s;
}
.nav-back:hover { color: var(--blue); }

/* PAGE WRAP — full 1240px container so content's left edge aligns with the nav logo.
   Inner elements (h1, lede, section text) have their own max-widths for readability. */
.legal-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(64px, 8vw, 96px) clamp(20px, 4vw, 40px) clamp(48px, 6vw, 72px);
}

/* HERO BLOCK */
.sec-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
h1 {
  font-size: clamp(36px, 5vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  max-width: 820px;
  text-wrap: balance;
}
.legal-lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 680px;
  margin-bottom: 20px;
}
.legal-meta {
  font-size: 13px;
  color: var(--ink-3);
  font-weight: 500;
  letter-spacing: 0.5px;
  padding-bottom: 28px;
  margin-bottom: 36px;
  max-width: 820px;
  border-bottom: 1px solid var(--line);
}

/* NUMBERED + UNNUMBERED SECTIONS */
.legal-section {
  margin-bottom: 32px;
}
.legal-section:last-of-type { margin-bottom: 0; }
.legal-section h2 {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin-bottom: 14px;
}
.legal-section h2 .num {
  color: var(--blue);
  font-weight: 500;
  font-size: 18px;
  min-width: 28px;
}
.legal-section h2 .no-num { /* For sections without a leading number */
  display: none;
}
.legal-section--unnumbered h2 { padding-left: 0; }
.legal-section--unnumbered h2 .num { display: none; }
.legal-section p,
.legal-section .legal-list {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
  font-weight: 300;
  max-width: 720px;
  padding-left: 42px;
  margin-bottom: 12px;
}
.legal-section--unnumbered p,
.legal-section--unnumbered .legal-list {
  padding-left: 0;
}
.legal-section p:last-child,
.legal-section .legal-list:last-child { margin-bottom: 0; }

/* BULLET LIST */
.legal-list {
  list-style: none;
}
.legal-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  line-height: 1.65;
}
.legal-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  background: var(--blue);
  border-radius: 50%;
}
.legal-list li strong { color: var(--ink); font-weight: 500; }

/* CLOSING LINE */
.legal-close {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  font-weight: 500;
  max-width: 820px;
}

/* ── FULL SITE FOOTER (Midnight Indigo, brand spec) ── */
footer {
  background: var(--indigo);
  color: rgba(255,255,255,0.78);
  padding: 72px 0 24px;
  margin-top: clamp(48px, 6vw, 80px);
  font-family: var(--font);
}
.footer-grid {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 64px;
  padding-bottom: 48px;
  align-items: start;
}
.footer-about h4,
.footer-col-title {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 20px;
  line-height: 1;
}
.footer-about p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.65);
  font-weight: 300;
  max-width: 420px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.footer-col li { font-size: 14px; line-height: 1.4; color: rgba(255,255,255,0.65); font-weight: 300; }
.footer-col li a { transition: color 0.2s; }
.footer-col li a:hover { color: #fff; }

/* Social row */
.footer-social {
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px clamp(20px, 4vw, 40px) 36px;
  border-top: 1px solid rgba(255,255,255,0.10);
  text-align: center;
}
.footer-social-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 20px;
  line-height: 1;
}
.footer-social-icons {
  display: inline-flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-social-icons a {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  display: inline-flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.85);
  transition: background 0.2s, border-color 0.2s, transform 0.2s, color 0.2s;
}
.footer-social-icons a:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--blue);
  color: #fff;
  transform: translateY(-2px);
}
.footer-social-icons svg { width: 18px; height: 18px; }

/* Bottom band — trust signals + copyright */
.footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px clamp(20px, 4vw, 40px) 4px;
  border-top: 1px solid rgba(255,255,255,0.10);
  text-align: center;
}
.footer-trust {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 6px;
}
.footer-trust .sep { color: rgba(255,255,255,0.25); margin: 0 10px; }
.footer-tagline {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  font-weight: 300;
  line-height: 1.6;
}
.footer-tagline strong { color: rgba(255,255,255,0.8); font-weight: 500; }

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .footer-about { grid-column: 1 / -1; }
  .footer-col { min-width: 0; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-about { grid-column: auto; }
  .footer-social-icons a { width: 40px; height: 40px; }
}

@media (max-width: 560px) {
  .brand-logo { height: 32px; transform: translateY(1px); }
  .legal-section h2 { font-size: 19px; gap: 10px; }
  .legal-section p,
  .legal-section .legal-list { padding-left: 0; }
}
