/* =============================================
   ACCESO ECUADOR — styles.css  v2.0
   May 2026 · Inter Tight throughout
   ============================================= */


/* ── Custom Properties ── */
:root {
  /* Palette */
  --color-bg:           #FAFAF7;
  --color-ink:          #1A1A1A;
  --color-teal:         #0D5C6F;
  --color-teal-mid:     #2E8A94;
  --color-turquoise:    #4FAEB8;
  --color-turq-wash:    rgba(79, 174, 184, 0.10);
  --color-muted:        #6B6B6B;
  --color-rule:         #E5E3DD;
  --color-surface:      #F2F0EB;
  --color-dark:         #082E38;  /* footer: deeper teal, in-family */
  --color-dark-border:  rgba(255, 255, 255, 0.08);
  --color-dark-text:    rgba(255, 255, 255, 0.55);

  /* Typography */
  --font: 'Inter Tight', system-ui, -apple-system, sans-serif;

  /* Type scale */
  --text-xs:   0.6875rem;  /* 11px */
  --text-sm:   0.8125rem;  /* 13px */
  --text-base: 1rem;       /* 16px */
  --text-lg:   1.0625rem;  /* 17px */
  --text-xl:   1.1875rem;  /* 19px */
  --text-2xl:  1.375rem;   /* 22px */
  --text-3xl:  1.75rem;    /* 28px */
  --text-4xl:  2.25rem;    /* 36px */
  --text-5xl:  3rem;       /* 48px */
  --text-6xl:  3.75rem;    /* 60px */
  --text-7xl:  4.5rem;     /* 72px */

  /* Layout */
  --max-width:     1120px;
  --content-width: 720px;
  --gutter:        1.5rem;

  /* Spacing */
  --s-1:  0.25rem;
  --s-2:  0.5rem;
  --s-3:  0.75rem;
  --s-4:  1rem;
  --s-5:  1.25rem;
  --s-6:  1.5rem;
  --s-8:  2rem;
  --s-10: 2.5rem;
  --s-12: 3rem;
  --s-16: 4rem;
  --s-20: 5rem;
  --s-24: 6rem;
}

/* ── Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font);
  font-size: var(--text-lg);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-teal-mid);
  text-decoration: underline;
  text-underline-offset: 3px;
}
a:hover { color: var(--color-turquoise); }
a:focus-visible {
  outline: 2px solid var(--color-turquoise);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── Skip-to-content link (a11y) ── */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--s-4);
  background-color: var(--color-teal);
  color: #fff;
  padding: var(--s-3) var(--s-5);
  border-radius: 6px;
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  z-index: 1000;
  transition: top 0.18s ease;
}
.skip-link:focus,
.skip-link:focus-visible {
  top: var(--s-3);
  color: #fff;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* ── Layout ── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

main { flex: 1; }

/* ─────────────────────────────────────────────
   SITE HEADER / NAV
───────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #fff;
  border-bottom: 1px solid var(--color-rule);
}

.nav {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-6);
}

.nav-brand {
  flex-shrink: 0;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.nav-brand img {
  height: 42px;
  width: auto;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: var(--s-1);
}

.nav-link {
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--color-muted);
  text-decoration: none;
  padding: var(--s-2) var(--s-4);
  border-radius: 6px;
  transition: color 0.15s, background-color 0.15s;
}

.nav-link:hover {
  color: var(--color-ink);
  background-color: var(--color-surface);
}

.nav-link[aria-current="page"] {
  color: var(--color-teal);
  background-color: var(--color-turq-wash);
}

/* ─────────────────────────────────────────────
   HOMEPAGE HERO
───────────────────────────────────────────── */
.hero {
  background-color: var(--color-teal);
  background-image: radial-gradient(ellipse at 72% 40%, #1A7A8E 0%, var(--color-teal) 62%);
  color: #fff;
  padding-block: var(--s-24) var(--s-20);
  position: relative;
  overflow: hidden;
}

/* Concentric decorative rings — echoes the logo icon */
.hero::before {
  content: '';
  position: absolute;
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
  width: 560px;
  height: 560px;
  border-radius: 50%;
  border: 1px solid rgba(79, 174, 184, 0.18);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  right: 80px;
  top: 50%;
  transform: translateY(-50%);
  width: 340px;
  height: 340px;
  border-radius: 50%;
  border: 1px solid rgba(79, 174, 184, 0.10);
  pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-turquoise);
  margin-bottom: var(--s-6);
}

.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 2px;
  background-color: var(--color-turquoise);
  flex-shrink: 0;
}

.hero-headline {
  font-size: var(--text-6xl);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
  color: #fff;
  max-width: 820px;
  margin-bottom: var(--s-6);
}

.hero-description {
  font-size: var(--text-xl);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.70);
  max-width: 520px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  gap: var(--s-3);
  margin-top: var(--s-8);
  flex-wrap: wrap;
}

.hero-actions .btn--hero {
  background-color: #fff;
  color: var(--color-teal);
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: var(--s-4) var(--s-7);
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  transition: transform 0.15s ease, box-shadow 0.18s ease;
}
.hero-actions .btn--hero:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  color: var(--color-teal);
}
.hero-actions .btn--hero::after { content: '→'; }

/* ─────────────────────────────────────────────
   SECTION HEADERS
───────────────────────────────────────────── */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-4);
  padding-bottom: var(--s-4);
  border-bottom: 2px solid var(--color-ink);
  margin-bottom: var(--s-8);
}

.section-head__title {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-ink);
}

.section-head__all {
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--color-teal-mid);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.15s;
}
.section-head__all:hover { color: var(--color-turquoise); }

/* ─────────────────────────────────────────────
   HOMEPAGE SECTIONS
───────────────────────────────────────────── */
.section-recent {
  padding-block: var(--s-16);
  background-color: var(--color-bg);
}

.section-about {
  padding-block: var(--s-16);
  background-color: var(--color-surface);
}

.about-body p {
  font-size: var(--text-xl);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.72;
  color: var(--color-muted);
  max-width: 680px;
  margin-bottom: var(--s-5);
}
.about-body p:last-child { margin-bottom: 0; }

/* ─────────────────────────────────────────────
   TAG PILL
───────────────────────────────────────────── */
.tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--color-teal-mid);
  background-color: var(--color-turq-wash);
  padding: 3px 10px;
  border-radius: 100px;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s;
}
.tag:hover {
  background-color: var(--color-turquoise);
  color: #fff;
}

/* ─────────────────────────────────────────────
   ARTICLE CARDS
───────────────────────────────────────────── */
.article-list {
  display: flex;
  flex-direction: column;
  gap: var(--s-6);
}

.article-card {
  background-color: #fff;
  border: 1px solid var(--color-rule);
  border-left: 4px solid var(--color-turquoise);
  border-radius: 0 10px 10px 0;
  padding: var(--s-8);
  display: grid;
  gap: var(--s-3);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-left-color 0.2s ease;
}

.article-card:hover {
  box-shadow: 0 8px 40px rgba(13, 92, 111, 0.11);
  transform: translateY(-3px);
  border-left-color: var(--color-teal-mid);
}

.article-card__meta {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  flex-wrap: wrap;
}

.article-card__date,
.article-card__read-time {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-muted);
}

.article-card__sep {
  color: var(--color-rule);
  user-select: none;
}

.article-card__title {
  font-size: var(--text-3xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.18;
}

.article-card__title a {
  color: var(--color-ink);
  text-decoration: none;
  transition: color 0.15s;
}
.article-card__title a:hover { color: var(--color-teal); }

.article-card__excerpt {
  font-size: var(--text-base);
  letter-spacing: -0.01em;
  color: var(--color-muted);
  line-height: 1.70;
  max-width: 640px;
}

.article-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-teal-mid);
  text-decoration: none;
  margin-top: var(--s-1);
  transition: color 0.15s, gap 0.15s;
}
.article-card__link::after { content: '→'; }
.article-card__link:hover {
  color: var(--color-turquoise);
  gap: var(--s-3);
}
.article-card__link--disabled {
  color: var(--color-muted);
  cursor: default;
  pointer-events: none;
}
.article-card__link--disabled::after { content: ''; }
.article-card--coming-soon {
  border-left-color: var(--color-rule);
  opacity: 0.85;
}
.article-card--coming-soon:hover {
  transform: none;
  box-shadow: none;
  border-left-color: var(--color-rule);
}
.tag--muted {
  background-color: transparent;
  color: var(--color-muted);
  border: 1.5px solid var(--color-rule);
}
.tag--muted:hover {
  color: var(--color-muted);
  background-color: transparent;
}

/* ─────────────────────────────────────────────
   PAGE HEADER (Análisis index, Contacto)
───────────────────────────────────────────── */
.page-header {
  background-color: var(--color-surface);
  padding-block: var(--s-16) var(--s-12);
  border-bottom: 1px solid var(--color-rule);
}

.page-title {
  font-size: var(--text-5xl);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: var(--s-3);
}

.page-description {
  font-size: var(--text-xl);
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--color-muted);
  max-width: 560px;
  line-height: 1.55;
}

.articles-section {
  padding-block: var(--s-12);
  background-color: var(--color-bg);
}

/* ─────────────────────────────────────────────
   SOBRE — TEAL PAGE HEADER
───────────────────────────────────────────── */
.page-header--teal {
  background-color: var(--color-teal);
  background-image: radial-gradient(ellipse at 75% 50%, #1A7A8E 0%, var(--color-teal) 65%);
  color: #fff;
  padding-block: var(--s-20) var(--s-16);
  position: relative;
  overflow: hidden;
}

.page-header--teal::before {
  content: '';
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  width: 440px;
  height: 440px;
  border-radius: 50%;
  border: 1px solid rgba(79, 174, 184, 0.18);
  pointer-events: none;
}

.page-header--teal .container { position: relative; z-index: 1; }

.page-header--teal .page-title { color: #fff; }

.page-header--teal .page-description { color: rgba(255, 255, 255, 0.68); }

/* ─────────────────────────────────────────────
   ARTICLE PAGE — HEADER BAND
───────────────────────────────────────────── */
.article-header-band {
  background-color: var(--color-surface);
  padding-top: var(--s-4);
  padding-bottom: var(--s-12);
  border-bottom: 1px solid var(--color-rule);
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--color-muted);
  text-decoration: none;
  padding-block: var(--s-4);
  transition: color 0.15s;
}
.article-back::before { content: '←'; }
.article-back:hover { color: var(--color-teal); }

.article-header {
  max-width: var(--content-width);
}

.article-header__meta {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-6);
  flex-wrap: wrap;
}

.article-header__date,
.article-header__read-time {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-muted);
}

.article-header__title {
  font-size: var(--text-5xl);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--color-ink);
  margin-bottom: var(--s-6);
}

.article-header__lead {
  font-size: var(--text-xl);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.6;
  color: var(--color-muted);
  max-width: 620px;
}

/* ─────────────────────────────────────────────
   ARTICLE PAGE — BODY BAND
───────────────────────────────────────────── */
.article-body-band {
  background-color: #fff;
  padding-block: var(--s-12);
}

.article-body {
  max-width: var(--content-width);
}

.article-body > * + * { margin-top: var(--s-6); }

.article-body h2 {
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: var(--color-ink);
  margin-top: var(--s-12);
  padding-top: var(--s-10);
  border-top: 1px solid var(--color-rule);
}

.article-body h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.article-body h3 {
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-top: var(--s-8);
  color: var(--color-ink);
}

.article-body p {
  font-size: var(--text-lg);
  line-height: 1.80;
  letter-spacing: -0.01em;
  color: #252525;
}

.article-body strong { font-weight: 700; }
.article-body em { font-style: italic; }

.article-body a { color: var(--color-teal-mid); }

.article-body blockquote {
  border: none;
  border-left: 4px solid var(--color-turquoise);
  background-color: var(--color-surface);
  padding: var(--s-6) var(--s-8);
  margin-block: var(--s-8);
  border-radius: 0 10px 10px 0;
  font-size: var(--text-xl);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--color-ink);
  line-height: 1.55;
}

.article-body ul,
.article-body ol {
  padding-left: var(--s-6);
}
.article-body li {
  line-height: 1.75;
  margin-bottom: var(--s-2);
}

.article-body hr {
  border: none;
  border-top: 2px solid var(--color-rule);
  margin-block: var(--s-10);
}

/* ── Data Callout ── */
.data-callout {
  background: linear-gradient(135deg, var(--color-teal) 0%, #1A7A8E 100%);
  color: #fff;
  padding: var(--s-8) var(--s-10);
  border-radius: 12px;
  margin-block: var(--s-8);
}
.data-callout__label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-turquoise);
  margin-bottom: var(--s-3);
}
.data-callout__figure {
  font-size: var(--text-7xl);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  color: #fff;
}
.data-callout__note {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.60);
  margin-top: var(--s-3);
  line-height: 1.5;
  max-width: 440px;
}

/* ── Article Note ── */
.article-note {
  background-color: var(--color-surface);
  border-left: 3px solid var(--color-turquoise);
  border-radius: 0 8px 8px 0;
  padding: var(--s-5) var(--s-6);
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: 1.65;
}
.article-note strong {
  color: var(--color-ink);
  font-weight: 700;
}

/* ── Manifesto Section ── */
.manifesto-section {
  padding-block: var(--s-16) var(--s-20);
  background-color: #fff;
}
.coming-soon {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-teal-mid);
  border: 1.5px solid var(--color-turq-wash);
  background-color: var(--color-turq-wash);
  border-radius: 100px;
  padding: 0.2em 0.9em;
  margin-bottom: var(--s-6);
}
.manifesto-placeholder {
  max-width: 680px;
}
.manifesto-placeholder p {
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--color-ink);
  margin-bottom: var(--s-5);
}
.manifesto-placeholder p:last-child {
  margin-bottom: 0;
}

/* ── Contact Section ── */
.contact-section {
  padding-block: var(--s-12) var(--s-20);
  background-color: #fff;
}
.contact-intro {
  max-width: 600px;
  margin-bottom: var(--s-10);
}
.contact-intro p {
  font-size: var(--text-base);
  line-height: 1.75;
  color: var(--color-muted);
  margin-bottom: var(--s-4);
}
.contact-intro p:last-child { margin-bottom: 0; }

/* ── Contact Form ── */
.contact-form {
  max-width: 600px;
}
.form-group {
  margin-bottom: var(--s-6);
}
.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-ink);
  margin-bottom: var(--s-2);
  letter-spacing: 0.01em;
}
.form-label abbr {
  color: var(--color-teal-mid);
  text-decoration: none;
  margin-left: 2px;
}
.form-input,
.form-select,
.form-textarea {
  display: block;
  width: 100%;
  font-family: var(--font);
  font-size: var(--text-base);
  color: var(--color-ink);
  background-color: #fff;
  border: 1.5px solid var(--color-rule);
  border-radius: 8px;
  padding: var(--s-3) var(--s-4);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-teal-mid);
  box-shadow: 0 0 0 3px rgba(46,138,148,0.15);
}
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B6B6B' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: var(--s-10);
  cursor: pointer;
}
.form-textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.65;
}
.form-hint {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-muted);
  margin-top: var(--s-2);
  line-height: 1.5;
}

/* Honeypot */
.form-field--bot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  font-family: var(--font);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  padding: var(--s-3) var(--s-7);
  cursor: pointer;
  transition: background-color 0.18s ease, box-shadow 0.18s ease, transform 0.15s ease;
}
.btn--primary {
  background-color: var(--color-teal-mid);
  color: #fff;
}
.btn--primary:hover {
  background-color: var(--color-teal);
  box-shadow: 0 4px 18px rgba(13,92,111,0.22);
  transform: translateY(-1px);
}
.btn--primary:active {
  transform: translateY(0);
  box-shadow: none;
}

/* ── 404 Error Page ── */
.error-page {
  text-align: center;
  padding-block: var(--s-20) var(--s-24);
  max-width: 480px;
  margin-inline: auto;
}
.error-code {
  display: block;
  font-size: clamp(6rem, 20vw, 9rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
  color: var(--color-rule);
  margin-bottom: var(--s-4);
  user-select: none;
}
.error-title {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-ink);
  margin-bottom: var(--s-4);
}
.error-description {
  font-size: var(--text-base);
  color: var(--color-muted);
  line-height: 1.7;
  margin-bottom: var(--s-8);
}

/* ── Site Footer ── */
.site-footer {
  background-color: var(--color-dark);
  padding-block: var(--s-12);
  margin-top: auto;
}
.footer-inner {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: var(--s-6) var(--s-12);
  align-items: start;
}
.footer-brand {
  grid-column: 1;
  grid-row: 1;
}
.footer-brand img {
  height: 36px;
  width: auto;
  display: block;
  margin-bottom: var(--s-4);
  filter: brightness(1.25);
}
.footer-tagline {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.45);
  max-width: 320px;
  line-height: 1.6;
  margin: 0;
}
.footer-nav {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding-top: var(--s-1);
}
.footer-nav a {
  font-size: var(--text-sm);
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.16s ease;
}
.footer-nav a:hover {
  color: var(--color-turquoise);
}
.footer-legal {
  grid-column: 1 / -1;
  grid-row: 2;
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.28);
  padding-top: var(--s-6);
  border-top: 1px solid rgba(255,255,255,0.08);
  line-height: 1.6;
}
.footer-legal a {
  color: rgba(255,255,255,0.40);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-legal a:hover {
  color: var(--color-turquoise);
}

/* ══════════════════════════════════════════════
   RESPONSIVE — Mobile-first breakpoints
   ══════════════════════════════════════════════ */

@media (max-width: 768px) {
  :root {
    --gutter: var(--s-5);
  }

  /* Nav */
  .nav {
    flex-direction: column;
    gap: var(--s-4);
    align-items: flex-start;
  }
  .nav-links {
    gap: var(--s-4);
  }

  /* Hero */
  .hero {
    padding-block: var(--s-16) var(--s-14);
  }
  .hero::before,
  .hero::after {
    display: none;
  }
  .hero-headline {
    font-size: clamp(2rem, 8vw, var(--text-5xl));
  }
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Section headers */
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s-3);
  }

  /* Article cards */
  .article-card {
    padding: var(--s-6);
  }

  /* Article body */
  .article-body {
    font-size: var(--text-base);
  }
  .article-header__title {
    font-size: clamp(1.6rem, 5.5vw, var(--text-3xl));
  }
  .data-callout__figure {
    font-size: clamp(3.5rem, 14vw, var(--text-7xl));
  }

  /* Page header */
  .page-title {
    font-size: clamp(1.8rem, 6vw, var(--text-3xl));
  }

  /* Contact form */
  .contact-form {
    max-width: 100%;
  }

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }
  .footer-nav {
    grid-column: 1;
    grid-row: 2;
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--s-3) var(--s-5);
  }
  .footer-legal {
    grid-row: 3;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: var(--s-4);
  }

  .hero-headline {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
  }

  .article-header__title {
    font-size: clamp(1.4rem, 5vw, 2rem);
  }

  .data-callout {
    padding: var(--s-6);
  }

  .error-code {
    font-size: clamp(5rem, 18vw, 7rem);
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}
