/* ═══════════════════════════════════════════════════════════════
   VALOR PERKS — css/t&c.css
   FULLY SELF-CONTAINED
   Theme: ultra-clean white card, mobile modal aesthetic, green CTA
   ═══════════════════════════════════════════════════════════════ */

:root {
  --font-display: 'Syne', sans-serif;
  --font-body:    'Plus Jakarta Sans', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  /* Colours */
  --white:      #ffffff;
  --bg:         #f2f3f7;
  --card-bg:    #ffffff;
  --green:      #22c55e;
  --green-dark: #16a34a;
  --green-light:#f0fdf4;
  --blue:       #1a56db;
  --blue-light: #eff4ff;
  --red-soft:   #fef2f2;
  --red:        #ef4444;

  /* Text */
  --text-900: #0d1117;
  --text-700: #1f2937;
  --text-500: #6b7280;
  --text-400: #9ca3af;

  /* Border */
  --border:       #e5e7eb;
  --border-light: #f3f4f6;

  /* Radii */
  --r-sm: 8px; --r-md: 14px; --r-lg: 20px; --r-xl: 26px; --r-pill: 999px;

  /* Spacing */
  --s-4:4px; --s-6:6px; --s-8:8px; --s-10:10px; --s-12:12px;
  --s-16:16px; --s-20:20px; --s-24:24px; --s-28:28px; --s-32:32px;
  --s-40:40px; --s-48:48px; --s-56:56px; --s-64:64px;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-700);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: var(--s-32) var(--s-16) var(--s-64);
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { padding-left: var(--s-20); }

/* ── Card container ─────────────────────────────────────────── */
.legal-page {
  width: 100%;
  max-width: 580px;
  background: var(--white);
  border-radius: var(--r-xl);
  box-shadow: 0 4px 24px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.04);
  overflow: hidden;
  position: relative;
}

/* Back button (absolute top-left of card equivalent) */
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: var(--s-6);
  font-size: 13px;
  color: var(--text-400);
  text-decoration: none;
  padding: var(--s-16) var(--s-24) 0;
  transition: color 0.12s;
  display: block;
}

.legal-back:hover { color: var(--blue); text-decoration: none; }

/* ── Header ─────────────────────────────────────────────────── */
.legal-header {
  padding: var(--s-24) var(--s-28) var(--s-20);
  border-bottom: 1px solid var(--border-light);
  position: relative;
}

/* Close button (X) — Figma style */
.legal-header::after {
  content: '×';
  position: absolute;
  top: var(--s-20);
  right: var(--s-24);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text-400);
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.12s;
}

.legal-header h1 {
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-900);
  letter-spacing: -0.02em;
  margin-bottom: var(--s-6);
  padding-right: var(--s-32);
  /* Using font-body, not display — matching Figma's clean sans-serif */
}

.legal-meta {
  font-size: 12px;
  color: var(--text-400);
  font-family: var(--font-mono);
}

/* Section label pill (reuse pattern) */
.section-label {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-light);
  padding: 3px 10px;
  border-radius: var(--r-pill);
  margin-bottom: var(--s-12);
}

/* ── Body ───────────────────────────────────────────────────── */
.legal-body {
  padding: var(--s-24) var(--s-28);
  overflow-y: auto;
  max-height: 68vh;
  /* Scrollable content area like Figma modal */
}

.legal-body::-webkit-scrollbar { width: 4px; }
.legal-body::-webkit-scrollbar-track { background: transparent; }
.legal-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* Intro paragraph */
.legal-body > p:first-child {
  font-size: 14px;
  color: var(--text-500);
  line-height: 1.8;
  margin-bottom: var(--s-20);
  border-bottom: 1px solid var(--border-light);
  padding-bottom: var(--s-20);
}

.legal-body h2 {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-900);
  margin: var(--s-24) 0 var(--s-10);
  letter-spacing: -0.01em;
}

/* First h2 no top margin */
.legal-body h2:first-of-type { margin-top: 0; }

.legal-body p {
  font-size: 14px;
  color: var(--text-500);
  line-height: 1.8;
  margin-bottom: var(--s-12);
}

.legal-body ul,
.legal-body ol {
  display: flex;
  flex-direction: column;
  gap: var(--s-6);
  margin-bottom: var(--s-16);
}

.legal-body li {
  font-size: 14px;
  color: var(--text-700);
  line-height: 1.75;
  position: relative;
}

/* Custom bullet — matching Figma's dot bullets */
.legal-body ul li::marker {
  color: var(--text-400);
}

.legal-body strong {
  font-weight: 700;
  color: var(--text-900);
}

/* Highlight box (blue info) */
.legal-highlight {
  background: var(--blue-light);
  border-left: 3px solid var(--blue);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: var(--s-16) var(--s-20);
  margin: var(--s-16) 0;
  font-size: 14px;
  color: var(--text-700);
  line-height: 1.75;
}

/* ── Bottom CTA — Figma green pill ──────────────────────────── */
.legal-footer {
  padding: var(--s-20) var(--s-28) var(--s-28);
  border-top: 1px solid var(--border-light);
  background: var(--white);
  position: sticky;
  bottom: 0;
}

/* "I agree" button — Figma green pill */
.btn-agree {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 16px;
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: var(--r-pill);
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
}

.btn-agree:hover {
  background: var(--green-dark);
  box-shadow: 0 4px 20px rgba(34,197,94,0.30);
  transform: translateY(-1px);
}

/* Nav links at bottom */
.legal-nav-links {
  display: flex;
  gap: var(--s-20);
  flex-wrap: wrap;
  margin-top: var(--s-16);
  padding-top: var(--s-16);
  border-top: 1px solid var(--border-light);
}

.legal-nav-links a {
  font-size: 12px;
  color: var(--text-400);
  text-decoration: none;
  transition: color 0.12s;
}

.legal-nav-links a:hover { color: var(--blue); }

.legal-footer-credit {
  margin-top: var(--s-12);
  font-size: 11px;
  color: var(--text-400);
  line-height: 1.6;
}

.legal-footer-credit a { color: var(--text-400); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 600px) {
  body { padding: var(--s-16) var(--s-8) var(--s-40); align-items: flex-start; }
  .legal-page { border-radius: var(--r-lg); }
  .legal-header { padding: var(--s-16) var(--s-20) var(--s-16); }
  .legal-body { padding: var(--s-20) var(--s-20); max-height: none; }
  .legal-footer { padding: var(--s-16) var(--s-20) var(--s-20); }
}