/* e-gym — páginas legales y de información (términos, privacidad, eliminar cuenta).
   Mismos tokens y tipografía que eg-premium.css, sin depender de Tailwind. */
:root {
  color-scheme: dark;
  --bg: #06080B;
  --surface: #10151B;
  --border: rgba(255, 255, 255, 0.09);
  --text: #F1F4F8;
  --text-2: #C9D1DC;
  --muted: #A3ADBC;
  --accent: #14B8A6;
  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", "Manrope", system-ui, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scrollbar-color: #2C3542 transparent;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text-2);
  line-height: 1.65;
  padding: 0 20px 48px;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 46rem;
  margin: 0 auto;
}

.legal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.legal-head a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.legal-head img {
  display: block;
  width: auto;
  height: 22px;
}

.legal-head .legal-back {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
}

h1 {
  font-family: var(--font-display);
  color: var(--text);
  font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
  text-wrap: balance;
}

h2 {
  font-family: var(--font-display);
  color: var(--text);
  font-size: 1.1875rem;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -0.015em;
  margin-top: 36px;
  margin-bottom: 10px;
}

p, li {
  font-size: 0.9375rem;
  margin-bottom: 12px;
}

ul, ol { padding-left: 22px; }
ol li { margin-bottom: 14px; }
li::marker { color: var(--muted); }

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

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

a:hover { color: #2DD4BF; }

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.date + h2 {
  margin-top: 8px;
}

.date {
  display: inline-block;
  margin-bottom: 20px;
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.8125rem;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0 20px;
}

.email-box {
  margin: 16px 0 20px;
  padding: 16px 18px;
  border: 1px solid rgba(20, 184, 166, 0.32);
  border-radius: 14px;
  background: var(--surface);
}

.email-box a {
  font-size: 1rem;
  font-weight: 700;
  word-break: break-all;
}

::selection { background: rgba(20, 184, 166, 0.32); color: var(--text); }
