/* ============================================================
   Malteurop RGPD Microsite — Styles
   Palette: teal #64A6A0 | cream #EFEFEC | dark #2c4e4b
   ============================================================ */

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

:root {
  --teal:        #64A6A0;
  --teal-dark:   #3d7d78;
  --teal-darker: #2c4e4b;
  --cream:       #EFEFEC;
  --cream-dark:  #e2e2de;
  --white:       #ffffff;
  --text:        #2d3748;
  --text-light:  #5f6b7a;
  --border:      #d4d4cf;
  --shadow:      0 2px 12px rgba(44, 78, 75, 0.10);
  --radius:      6px;
  --font:        'Segoe UI', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--cream);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}

/* ── Header ──────────────────────────────────────────────── */
header {
  background: var(--white);
  border-bottom: 3px solid var(--teal);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.logo-img {
  height: 44px;
  width: auto;
  display: block;
}

.header-badge {
  background: var(--teal);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.4px;
  white-space: nowrap;
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--teal-darker) 0%, var(--teal) 100%);
  color: var(--white);
  padding: 64px 24px 56px;
  text-align: center;
}

.hero-inner {
  max-width: 680px;
  margin: 0 auto;
}

.hero-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.hero h1 span {
  opacity: 0.85;
  font-weight: 400;
}

.hero-desc {
  font-size: 16px;
  opacity: 0.85;
  max-width: 520px;
  margin: 0 auto 36px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  color: var(--teal-darker);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.btn-primary svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: var(--teal);
}

/* ── Main content ────────────────────────────────────────── */
main {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

/* ── Info cards ──────────────────────────────────────────── */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 52px;
}

.info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.info-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-card-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--teal);
}

.info-card-body h3 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-light);
  margin-bottom: 4px;
}

.info-card-body p {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

/* ── Section titles ──────────────────────────────────────── */
.section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--teal-darker);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--teal);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title svg {
  width: 20px;
  height: 20px;
  fill: var(--teal);
  flex-shrink: 0;
}

/* ── Version history table ───────────────────────────────── */
.table-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

thead {
  background: var(--teal-darker);
  color: var(--white);
}

thead th {
  padding: 13px 18px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

tbody tr {
  border-bottom: 1px solid var(--cream-dark);
  transition: background 0.1s;
}

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

tbody tr:hover {
  background: var(--cream);
}

tbody tr.current {
  background: #f0f8f7;
}

tbody td {
  padding: 14px 18px;
  vertical-align: middle;
}

.version-badge {
  display: inline-block;
  background: var(--teal);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 12px;
}

.version-badge.old {
  background: var(--cream-dark);
  color: var(--text-light);
}

.current-tag {
  display: inline-block;
  background: #e6f4f3;
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  border: 1px solid var(--teal);
  margin-left: 8px;
  vertical-align: middle;
}

.dl-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--teal-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  padding: 6px 14px;
  border: 1.5px solid var(--teal);
  border-radius: var(--radius);
  transition: background 0.15s, color 0.15s;
}

.dl-link:hover {
  background: var(--teal);
  color: var(--white);
}

.dl-link svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* ── Footer ──────────────────────────────────────────────── */
footer {
  background: var(--teal-darker);
  color: rgba(255,255,255,0.7);
  padding: 32px 24px;
  text-align: center;
  font-size: 13px;
}

footer strong {
  color: var(--white);
}

footer a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.3);
}

footer a:hover {
  color: var(--white);
  border-bottom-color: var(--white);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 600px) {
  .header-badge { display: none; }
  .hero { padding: 44px 20px 40px; }
  table { font-size: 13px; }
  thead th, tbody td { padding: 11px 12px; }
}
