/* iQWEB content pages — shared light theme (legal, articles, FAQ, trust) */

:root {
  --bg: #ffffff;
  --bg-soft: #f6f9fc;
  --bg-muted: #eef2f7;
  --ink: #0a2540;
  --ink-soft: #1a1f36;
  --body: #425466;
  --muted: #6b7c93;
  --border: #e6ebf1;
  --border-strong: #d8dee8;
  --accent: #635bff;
  --accent-hover: #4f46e5;
  --accent-soft: rgba(99, 91, 255, 0.08);
  --accent-text: #635bff;
  --teal: #00d4aa;
  --ok: #0d9488;
  --ok-soft: #ecfdf5;
  --danger: #df1b41;
  --danger-soft: #fef2f2;
  --shadow-sm: 0 2px 5px rgba(50, 50, 93, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 13px 27px rgba(50, 50, 93, 0.08), 0 3px 8px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 30px 60px rgba(50, 50, 93, 0.1), 0 8px 20px rgba(0, 0, 0, 0.06);
  --radius: 8px;
  --radius-lg: 12px;
  --radius-pill: 999px;
  --max-width: 1140px;
  --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  overflow-x: hidden;
}

html { font-size: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--body);
  -webkit-font-smoothing: antialiased;
  font-size: 1rem;
  line-height: 1.6;
}

a {
  color: var(--accent-text);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
}

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  isolation: isolate;
}

.page-shell::before {
  content: "";
  position: absolute;
  top: 0;
  right: -12%;
  width: min(780px, 72vw);
  height: min(1320px, 130vh);
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 92% 48% at 84% 0%, rgba(99, 91, 255, 0.2), transparent 68%),
    radial-gradient(ellipse 78% 48% at 68% 28%, rgba(0, 212, 170, 0.12), transparent 66%);
  filter: blur(72px);
  opacity: 0.85;
}

.shell-inner,
.wrap {
  flex: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 48px;
  position: relative;
  z-index: 1;
}

/* Navigation */
.nav,
.topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 16px 0;
  margin-bottom: 8px;
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled,
.topbar.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--border);
}

.nav-left,
.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.nav-title,
.brand a {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.nav-title:hover,
.brand a:hover {
  color: var(--ink);
  text-decoration: none;
}

.nav-subtitle,
.brand small {
  font-size: 0.75rem;
  color: var(--muted);
}

.nav-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-links,
.navlinks {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-link,
.navlinks a {
  color: var(--body);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease;
  white-space: nowrap;
}

.nav-link:hover,
.navlinks a:hover,
.nav-link.is-active {
  color: var(--ink);
  text-decoration: none;
}

.nav-right,
.rightlinks {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
  white-space: nowrap;
}

.nav-cta,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  box-shadow: var(--shadow-sm);
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.nav-cta:hover,
.pill:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.nav-ghost {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--body);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

.nav-ghost:hover {
  color: var(--ink);
  border-color: var(--border-strong);
  text-decoration: none;
}

.nav-cta-main { line-height: 1; }

/* Legal / policy hero */
.hero-shell {
  display: block;
  margin-top: 40px;
  margin-bottom: 24px;
}

.hero-h1 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--ink);
  letter-spacing: -0.03em;
}

.hero-h1 span,
.hero-h1 .h1-grad {
  display: block;
  margin-top: 6px;
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 500;
  color: var(--body);
  letter-spacing: -0.01em;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}

.hero-sub {
  font-size: 1.0625rem;
  color: var(--body);
  max-width: 44rem;
  line-height: 1.65;
  margin: 0;
}

.hero-sub strong {
  color: var(--ink);
  font-weight: 600;
}

/* Article hero */
.article-hero {
  margin-top: 48px;
  margin-bottom: 32px;
  text-align: center;
  padding: 0 8px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-text);
  border: 1px solid var(--border);
  background: var(--accent-soft);
}

.article-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 0 auto;
  max-width: 22ch;
  color: var(--ink);
}

.article-title .accent {
  color: var(--accent-text);
}

.article-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.65;
  color: var(--body);
  font-weight: 400;
  max-width: 52ch;
  margin: 16px auto 0;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  border-radius: var(--radius-pill);
  padding: 12px 22px;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: inherit;
  border: 1px solid transparent;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  color: #fff;
}

.btn-secondary {
  border-color: var(--border-strong);
  background: var(--bg);
  color: var(--body);
}

.btn-secondary:hover {
  color: var(--ink);
  border-color: var(--border-strong);
  transform: translateY(-1px);
  text-decoration: none;
}

/* Content panels */
.content-shell {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  gap: 20px;
}

.panel {
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.panel-grid.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 960px) {
  .panel-grid.two-col {
    grid-template-columns: 1fr;
  }
}

.info-card {
  border-radius: var(--radius-lg);
  padding: 20px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
}

.info-card h3,
.section-heading {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}

.eyebrow {
  display: block;
  margin-bottom: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.lead,
.panel p,
.info-card p,
.timeline-note,
.update-copy,
.p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--body);
}

.stack { display: grid; gap: 16px; }

.list {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--body);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.list li + li { margin-top: 8px; }
.list strong { color: var(--ink); }

.highlight {
  color: var(--accent-text);
  font-weight: 600;
}

.cta-panel {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
  align-items: start;
}

/* Timeline (changelog) */
.timeline {
  display: grid;
  gap: 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
}

.timeline-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.timeline-date {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent-text);
  line-height: 1.4;
}

.timeline-body h3 {
  margin: 0 0 8px;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink);
}

.timeline-body p,
.timeline-body ul {
  margin: 0;
  color: var(--body);
  line-height: 1.65;
  font-size: 0.9375rem;
}

.timeline-body ul {
  margin-top: 12px;
  padding-left: 20px;
}

/* FAQ */
.faq-wrap {
  display: grid;
  gap: 10px;
}

.faq-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  padding: 18px 20px;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-question:hover {
  background: var(--bg-soft);
}

.faq-question-text {
  flex: 1;
  min-width: 0;
}

.faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  font-weight: 500;
  transition: transform 0.2s ease;
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.faq-answer-inner {
  padding: 0 20px 20px;
}

.faq-answer p {
  margin: 0 0 12px;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--body);
}

.faq-answer p:last-child { margin-bottom: 0; }

.faq-answer ul {
  margin: 8px 0 0;
  padding-left: 20px;
  color: var(--body);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.faq-answer li + li { margin-top: 6px; }
.faq-answer strong { color: var(--ink); }

/* Legal sections */
.section {
  margin-top: 40px;
}

.section-kicker {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin: 4px 0 0;
}

.section-subtitle {
  font-size: 0.9375rem;
  color: var(--body);
  max-width: 48rem;
  line-height: 1.65;
  margin-top: 8px;
}

.legal-block {
  margin-top: 20px;
  max-width: 64rem;
}

.legal-block h2 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  margin: 24px 0 8px;
}

.legal-block h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin: 16px 0 6px;
  color: var(--ink);
}

.legal-block p,
.legal-block li {
  font-size: 0.9375rem;
  color: var(--body);
  line-height: 1.7;
}

.legal-block ul {
  padding-left: 20px;
  margin: 8px 0 12px;
}

.email-link {
  color: var(--accent-text);
  text-decoration: none;
}

.email-link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* Trust page grid */
.grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.95fr);
  gap: 20px;
  margin-top: 32px;
  align-items: start;
}

.grid .card {
  border-radius: var(--radius-lg);
  background: var(--bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 24px;
}

.grid .card.accent {
  border-color: rgba(99, 91, 255, 0.25);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
}

.grid .section-title {
  margin: 0 0 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.grid ul {
  margin: 10px 0 0 18px;
  padding: 0;
  color: var(--body);
  line-height: 1.65;
  font-size: 0.9375rem;
}

.grid li + li { margin-top: 6px; }

.table-wrap {
  margin-top: 14px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg-soft);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

thead th {
  text-align: left;
  padding: 12px 14px;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.75rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

tbody td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--body);
  vertical-align: top;
}

tbody tr:last-child td { border-bottom: none; }

.tick { color: var(--ok); font-weight: 700; }
.cross { color: var(--danger); font-weight: 700; }

.note {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(99, 91, 255, 0.2);
  background: var(--accent-soft);
  color: var(--body);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.closing-statement {
  padding: 48px 20px;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  margin-top: 48px;
}

.closing-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.closing-inner p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--body);
  margin: 0;
  font-style: italic;
}

/* Footer */
.wd-footer {
  padding: 40px 0 32px;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--muted);
  text-align: center;
  background: var(--bg);
}

.wd-footer-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.wd-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 16px;
}

.wd-footer-links a {
  color: var(--body);
  font-size: 0.8125rem;
  text-decoration: none;
}

.wd-footer-links a:hover {
  color: var(--ink);
  text-decoration: none;
}

.wd-footer-right { color: var(--muted); }

/* Responsive */
@media (max-width: 960px) {
  .panel-grid,
  .cta-panel {
    grid-template-columns: 1fr;
  }

  .grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .page-shell::before {
    right: -28%;
    width: min(560px, 110vw);
    opacity: 0.65;
    filter: blur(56px);
  }

  .nav,
  .topbar {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .nav-center,
  .navlinks {
    display: none;
  }

  .article-hero {
    margin-top: 32px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 640px) {
  .shell-inner,
  .wrap {
    padding-inline: 20px;
  }

  .article-title {
    font-size: clamp(1.75rem, 8vw, 2.25rem);
    max-width: 100%;
  }

  .panel {
    padding: 22px 18px;
  }

  .faq-question {
    padding: 16px 18px;
  }

  .faq-answer-inner {
    padding: 0 18px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn-primary:hover,
  .nav-cta:hover,
  .pill:hover {
    transform: none;
  }
}
