/* legal.css — Shared stylesheet for Privacy and Terms */

:root { color-scheme: dark; }
html.light-theme, html.light-theme-preload, body.light-theme { color-scheme: light; }

:root{
  --bg:#07090E;  --text:#F8FAFC;  --text-dim:#94A3B8;  --text-faint:#64748B;
  --card:rgba(255,255,255,.03);   --card-hover:rgba(255,255,255,.05);
  --card-brd:rgba(255,255,255,.08);
  --surface-bg:rgba(255,255,255,.03); --surface-border:rgba(255,255,255,.08);
  --inner-box-bg:rgba(255,255,255,0.03);
  --inner-box-border:rgba(255,255,255,0.12);
  --feed-sep:#191E29;
  --radius:18px;   --pad-page:24px;

  --accent:var(--cyan);   --accent-rgb:var(--cyan-rgb);
  --cyan:#00E5FF;    --cyan-rgb:0,229,255;
  --magenta:#FF3EA0; --magenta-rgb:255,62,160;
  --amber:#FFB224;   --amber-rgb:255,178,36;
  --violet:#9B6BFF;  --lime:#10B981;  --blue:#3B82F6;
  --danger:#FF4D6D;
}

html.light-theme, html.light-theme-preload, body.light-theme {
  --bg:#F5F7FA;  --text:#0F172A;  --text-dim:#475569;  --text-faint:#94A3B8;
  --card:rgba(0,0,0,.025);        --card-hover:rgba(0,0,0,.04);
  --card-brd:rgba(0,0,0,.1);
  --surface-bg:rgba(0,0,0,.02);   --surface-border:rgba(0,0,0,.08);
  --inner-box-bg:rgba(0,0,0,0.03);
  --inner-box-border:rgba(0,0,0,0.08);
  --feed-sep:#E4E6EB;
  --glass-bg:rgba(255,255,255,.85);
  --danger:#DC2626;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}

/* Icon system */
.lp-ic{ display:inline-flex; align-items:center; justify-content:center; width:1em; height:1em; line-height:1; vertical-align:-0.125em; flex:0 0 auto; }
.lp-ic > svg{ width:1em; height:1em; display:block; stroke:currentColor; fill:none; }
.lp-ic > svg [fill="currentColor"]{ fill:currentColor; }

/* Header */
.res-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 64px;
  padding: 0 var(--pad-page);
  background: var(--bg);
  border-bottom: 1px solid var(--surface-border);
}
.res-header-back {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--inner-box-bg);
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.res-header-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.res-header-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--text);
}

/* Content */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px var(--pad-page) 80px;
  line-height: 1.6;
}
.legal-content h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 32px;
  margin: 0 0 16px 0;
}
/* The sales page footer links straight to #delivery, #refunds and #contact.
   The header above is sticky, so without this the heading lands underneath it. */
.legal-content h2[id] { scroll-margin-top: 80px; }
.legal-content h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  margin: 40px 0 16px 0;
  color: var(--text);
}
.legal-content p, .legal-content ul {
  font-size: 15px;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.legal-content ul {
  padding-left: 24px;
}
.legal-content li {
  margin-bottom: 8px;
}
.legal-content .accent-highlight {
  background: var(--accent);
  color: #000;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

@media (max-width: 640px) {
  :root { --pad-page: 14px; }
  .res-header { height: 56px; }
  .res-header-title { font-size: 18px; }
  .res-header-back { width: 36px; height: 36px; font-size: 16px; }
  .res-header-logo { width: 28px; height: 28px; }
  
  .legal-content { padding-top: 24px; padding-bottom: 60px; }
  .legal-content h1 { font-size: 26px; }
  .legal-content h2 { font-size: 18px; margin-top: 32px; }
  .legal-content p, .legal-content ul { font-size: 14px; }
}
