/* ==========================================================================
   BetOnYou — Landing Page Styles
   ========================================================================== */

:root {
  /* Brand palette (from app icon / design-system tokens) */
  --bg: #0a0f14;
  --bg-elevated: #0e161f;
  --surface: #12202e;
  --surface-2: #17273a;
  --border: #1e2a36;
  --border-light: #24333f;

  --text: #f9fafb;
  --text-muted: #9ca3af;
  --text-faint: #64748b;

  --accent: #378add;
  --accent-light: #85b7eb;
  --accent-dim: #2563eb;

  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  --max-width: 1140px;

  --font: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  position: relative;
}

/* Background texture: faint radial glow + grid */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: radial-gradient(
      ellipse 900px 500px at 50% -10%,
      rgba(55, 138, 221, 0.16),
      transparent 60%
    ),
    var(--bg);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(
      to right,
      rgba(255, 255, 255, 0.028) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 100% 60% at 50% 0%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(
    ellipse 100% 60% at 50% 0%,
    black 40%,
    transparent 100%
  );
}

/* ---------- Typography ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-light);
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(55, 138, 221, 0.25);
}

h1,
h2,
h3 {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

h2 {
  font-size: clamp(28px, 4vw, 42px);
}

h3 {
  font-size: 20px;
  letter-spacing: -0.01em;
}

p {
  color: var(--text-muted);
}

.section-head {
  max-width: 620px;
  margin-bottom: 48px;
}

.section-head h2 {
  margin-top: 14px;
}

.section-head p {
  margin-top: 14px;
  font-size: 17px;
}

.section-pad {
  padding: 96px 0;
}

@media (max-width: 640px) {
  .section-pad {
    padding: 64px 0;
  }
}

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.nav.is-scrolled {
  background: rgba(10, 15, 20, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.brand .logo-mark {
  width: 30px;
  height: 30px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-links a {
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border-light);
  padding: 7px 12px;
  border-radius: var(--radius-full);
}

.nav-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--warning);
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }
}

/* ---------- Hero ---------- */

.hero {
  padding: 168px 0 110px;
  text-align: center;
}

.hero-logo {
  width: 84px;
  height: 84px;
  margin: 0 auto 32px;
}

.hero .eyebrow {
  justify-content: center;
  width: 100%;
}

.hero h1 {
  margin-top: 22px;
  font-size: clamp(38px, 7vw, 76px);
  text-wrap: balance;
}

.hero h1 .accent {
  color: var(--accent-light);
}

.hero-sub {
  max-width: 600px;
  margin: 24px auto 0;
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-muted);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
  padding: 12px 22px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.hero-badge strong {
  color: var(--text);
  font-weight: 700;
}

.hero-rule {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-top: 72px;
  flex-wrap: wrap;
}

/* ---------- Stat rule strip ---------- */

.stat-rule {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat-rule .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  padding: 40px 20px;
  text-align: center;
  border-left: 1px solid var(--border);
}

.stat-item:first-child {
  border-left: none;
}

.stat-item .num {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.stat-item .num span {
  color: var(--accent-light);
}

.stat-item .label {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

@media (max-width: 720px) {
  .stat-rule .wrap {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-item:nth-child(3) {
    border-left: none;
  }
  .stat-item:nth-child(1),
  .stat-item:nth-child(2) {
    border-bottom: 1px solid var(--border);
    padding-bottom: 32px;
  }
  .stat-item:nth-child(3),
  .stat-item:nth-child(4) {
    padding-top: 32px;
  }
}

/* ---------- Positioning statement ---------- */

.statement {
  padding: 120px 0;
}

.statement-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: start;
}

.statement h2 {
  font-size: clamp(30px, 4.4vw, 46px);
}

.statement h2 .muted {
  color: var(--text-faint);
}

.compare {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.compare-row {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  align-items: start;
}

.compare-row.is-yes {
  border-color: rgba(55, 138, 221, 0.35);
  background: linear-gradient(
    180deg,
    rgba(55, 138, 221, 0.08),
    rgba(55, 138, 221, 0.02)
  );
}

.compare-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  margin-top: 2px;
}

.compare-row.is-no .compare-icon {
  background: rgba(239, 68, 68, 0.12);
  color: var(--danger);
}

.compare-row.is-yes .compare-icon {
  background: rgba(55, 138, 221, 0.18);
  color: var(--accent-light);
}

.compare-text {
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
}

.compare-row.is-no .compare-text {
  color: var(--text-muted);
}

@media (max-width: 860px) {
  .statement-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ---------- How it works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.step {
  background: var(--bg-elevated);
  padding: 32px 26px;
}

.step .step-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-light);
  letter-spacing: 0.04em;
}

.step h3 {
  margin-top: 18px;
}

.step p {
  margin-top: 10px;
  font-size: 14.5px;
}

@media (max-width: 900px) {
  .steps {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* ---------- Weekly program mockup ---------- */

.program-section .wrap {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: center;
}

@media (max-width: 900px) {
  .program-section .wrap {
    grid-template-columns: 1fr;
    gap: 44px;
  }
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 32px;
}

.feature-item {
  display: flex;
  gap: 16px;
}

.feature-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-light);
}

.feature-text h3 {
  font-size: 16px;
}

.feature-text p {
  margin-top: 4px;
  font-size: 14.5px;
}

/* Card mockup shared chrome */

.mock-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.mock-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}

.mock-card-head .title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.mock-card-head .sub {
  font-size: 12px;
  color: var(--text-faint);
  margin-top: 2px;
}

.mock-pill {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: var(--radius-full);
}

.mock-pill.week {
  color: var(--accent-light);
  background: rgba(55, 138, 221, 0.14);
}

.week-rows {
  display: flex;
  flex-direction: column;
}

.week-row {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}

.week-row:last-child {
  border-bottom: none;
}

.week-row .day {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-faint);
  letter-spacing: 0.04em;
}

.week-row .run-name {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
}

.week-row .run-detail {
  font-size: 12.5px;
  color: var(--text-faint);
  margin-top: 2px;
}

.status-dot {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 5px 10px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.status-dot.done {
  color: var(--success);
  background: rgba(34, 197, 94, 0.12);
}

.status-dot.due {
  color: var(--accent-light);
  background: rgba(55, 138, 221, 0.16);
}

.status-dot.rest {
  color: var(--text-faint);
  background: rgba(148, 163, 184, 0.1);
}

.status-dot.missed {
  color: var(--danger);
  background: rgba(239, 68, 68, 0.12);
}

.status-dot.upcoming {
  color: var(--text-faint);
  background: transparent;
  border: 1px solid var(--border-light);
}

/* ---------- Rules / commitment cards ---------- */

.rules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 860px) {
  .rules-grid {
    grid-template-columns: 1fr;
  }
}

.rule-card {
  padding: 30px 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--bg-elevated);
}

.rule-card .rule-num {
  font-size: 34px;
  font-weight: 800;
  color: var(--accent-light);
  letter-spacing: -0.02em;
}

.rule-card h3 {
  margin-top: 14px;
}

.rule-card p {
  margin-top: 8px;
  font-size: 14.5px;
}

/* ---------- Squad / group accountability ---------- */

.squad-section .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}

@media (max-width: 900px) {
  .squad-section .wrap {
    grid-template-columns: 1fr;
    gap: 44px;
  }
}

.roster-row {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 13px 20px;
  border-bottom: 1px solid var(--border);
}

.roster-row:last-child {
  border-bottom: none;
}

.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11.5px;
  font-weight: 700;
  color: #fff;
}

.roster-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.roster-progress {
  font-size: 12px;
  color: var(--text-faint);
  margin-top: 2px;
}

.badge {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: var(--radius-full);
}

.badge.active {
  color: var(--success);
  background: rgba(34, 197, 94, 0.12);
}

.badge.risk {
  color: var(--warning);
  background: rgba(245, 158, 11, 0.14);
}

.badge.removed {
  color: var(--danger);
  background: rgba(239, 68, 68, 0.12);
}

/* ---------- Squad feed (chat) mockup ---------- */

.feed-section .wrap {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: center;
}

@media (max-width: 900px) {
  .feed-section .wrap {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .feed-info {
    order: -1;
  }
}

.feed-body {
  padding: 18px 0 6px;
}

.feed-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 0 20px;
  margin-bottom: 26px;
}

.feed-row.is-own {
  justify-content: flex-end;
}

.feed-col {
  max-width: 76%;
  display: flex;
  flex-direction: column;
}

.feed-row.is-own .feed-col {
  align-items: flex-end;
}

.feed-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
  padding: 0 2px;
}

.feed-meta .name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
}

.feed-meta .time {
  font-size: 11.5px;
  color: var(--text-faint);
}

.feed-item {
  position: relative;
}

/* Chat bubble */

.feed-bubble {
  border-radius: 16px;
  padding: 9px 13px;
  font-size: 13.5px;
  line-height: 1.4;
  background: var(--surface-2);
  border: 1px solid var(--border-light);
  border-bottom-left-radius: 5px;
  color: var(--text);
}

.feed-row.is-own .feed-bubble {
  background: var(--accent-dim);
  border: none;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 5px;
  color: #fff;
}

/* Run submission card */

.feed-run {
  width: 220px;
  background: var(--surface-2);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
}

.feed-run-image {
  position: relative;
  height: 118px;
  background: linear-gradient(
    135deg,
    rgba(55, 138, 221, 0.4),
    rgba(133, 183, 235, 0.12) 60%,
    rgba(10, 15, 20, 0.4)
  );
  display: flex;
  align-items: flex-end;
}

.feed-run-stats {
  padding: 10px 12px;
  color: #fff;
}

.feed-run-stats .dist {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.feed-run-stats .pace {
  font-size: 11px;
  opacity: 0.8;
  margin-top: 1px;
}

.feed-run-check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--success);
}

.feed-run-caption {
  padding: 9px 12px;
  font-size: 12px;
  color: var(--text-faint);
}

/* Reaction tapback pill */

.tapback {
  position: absolute;
  bottom: -11px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 1px;
  height: 22px;
  padding: 0 7px;
  border-radius: var(--radius-full);
  background: var(--surface-2);
  border: 2px solid var(--bg-elevated);
  font-size: 11px;
}

.feed-row.is-own .tapback {
  left: auto;
  right: 12px;
}

.tapback .count {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-faint);
  margin-left: 2px;
}

.feed-input-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
}

.feed-input-fake {
  flex: 1;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  padding: 0 14px;
  font-size: 13px;
  color: var(--text-faint);
}

.feed-send {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

/* ---------- Levels ---------- */

.levels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 860px) {
  .levels-grid {
    grid-template-columns: 1fr;
  }
}

.level-card {
  padding: 32px 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--bg-elevated);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.level-card.is-featured {
  border-color: rgba(55, 138, 221, 0.45);
  background: linear-gradient(
    180deg,
    rgba(55, 138, 221, 0.1),
    rgba(55, 138, 221, 0.02)
  );
  position: relative;
}

.level-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.level-card.is-featured .level-tag {
  color: var(--accent-light);
}

.level-card h3 {
  font-size: 22px;
}

.level-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.level-meta div {
  display: flex;
  justify-content: space-between;
}

.level-meta span:last-child {
  color: var(--text);
  font-weight: 600;
}

.level-card p.desc {
  font-size: 14px;
  flex-grow: 1;
}

/* ---------- Enforcement quote ---------- */

.enforcement {
  padding: 130px 0;
  text-align: center;
}

.enforcement blockquote {
  max-width: 780px;
  margin: 0 auto;
  font-size: clamp(24px, 3.6vw, 38px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--text);
}

.enforcement blockquote .dim {
  color: var(--text-faint);
}

.enforcement-foot {
  margin-top: 28px;
  font-size: 14px;
  color: var(--text-faint);
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 40px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
}

.footer-brand .logo-mark {
  width: 24px;
  height: 24px;
}

.footer-meta {
  font-size: 13px;
  color: var(--text-faint);
}

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.footer-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--warning);
}

.footer-links {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: var(--text-faint);
}

.footer-links a {
  color: var(--text-faint);
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--text-muted);
}

/* ---------- Legal page ---------- */

.legal-hero {
  padding: 152px 0 56px;
  border-bottom: 1px solid var(--border);
}

.legal-hero .back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.legal-hero .back-link:hover {
  color: var(--text);
}

.legal-hero h1 {
  margin-top: 18px;
  font-size: clamp(30px, 5vw, 46px);
}

.legal-updated {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--text-faint);
}

.legal-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 56px;
  padding: 64px 0 140px;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 96px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 20px;
  max-height: calc(100vh - 130px);
  overflow-y: auto;
}

.legal-toc-title {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 14px;
}

.legal-toc ol {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  counter-reset: toc;
}

.legal-toc li {
  counter-increment: toc;
  font-size: 13.5px;
}

.legal-toc a {
  color: var(--text-muted);
  display: flex;
  gap: 8px;
  line-height: 1.4;
}

.legal-toc a::before {
  content: counter(toc) ".";
  color: var(--text-faint);
  flex-shrink: 0;
}

.legal-toc a:hover {
  color: var(--text);
}

.legal-body {
  max-width: 700px;
}

.legal-intro {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 40px;
  line-height: 1.7;
}

.legal-section {
  margin-bottom: 44px;
  scroll-margin-top: 96px;
}

.legal-section h2 {
  font-size: 21px;
  margin-bottom: 14px;
}

.legal-section h3 {
  font-size: 15.5px;
  color: var(--text);
  margin: 18px 0 8px;
}

.legal-section p,
.legal-section li {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.72;
  margin-bottom: 12px;
}

.legal-section ul,
.legal-section ol.legal-list {
  padding-left: 22px;
  margin-bottom: 12px;
}

.legal-section li {
  margin-bottom: 6px;
}

.legal-section strong {
  color: var(--text);
  font-weight: 650;
}

.legal-callout {
  border: 1px solid var(--border-light);
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin: 4px 0 18px;
}

.legal-callout p {
  color: var(--text);
  margin-bottom: 0;
  font-size: 14px;
}

.legal-callout.warn {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.06);
}

.legal-callout.danger {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.06);
}

.legal-placeholder {
  color: var(--warning);
  font-weight: 600;
}

@media (max-width: 860px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .legal-toc {
    position: static;
    max-height: none;
  }
}

/* ---------- Reveal-on-scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
