/* ==========================================================================
   UK casino comparison site
   Palette: Deep Navy #0F172A, White #FFFFFF, Slate border #E2E8F0, Trust Emerald #059669
   ========================================================================== */

:root {
  --navy: #0F172A;
  --navy-800: #1E293B;
  --navy-700: #334155;
  --white: #FFFFFF;
  --border: #E2E8F0;
  --tint: #F8FAFC;
  --emerald: #059669;
  --emerald-dark: #047857;   /* AA contrast with white text */
  --emerald-darker: #065F46;
  --emerald-soft: #ECFDF5;
  --text: #0F172A;
  --text-muted: #475569;
  --text-on-navy: #CBD5E1;
  --star-empty: #CBD5E1;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", Times, serif;

  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 6px 20px rgba(15, 23, 42, 0.06);
  --container: 1200px;
  --header-h: 68px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: inherit;
}

h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.05rem; margin-top: 1.6em; }

p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }

a { color: var(--emerald-dark); text-underline-offset: 2px; }
a:hover { color: var(--emerald-darker); }

:focus-visible {
  outline: 3px solid var(--emerald);
  outline-offset: 2px;
  border-radius: 3px;
}

address { font-style: normal; }
table { border-collapse: collapse; width: 100%; }
[hidden] { display: none !important; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--white);
  color: var(--navy);
  font-weight: 700;
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; }

.eyebrow {
  margin: 0 0 0.6em;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--emerald-dark);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 22px;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary { background: var(--emerald-dark); color: var(--white); }
.btn-primary:hover { background: var(--emerald-darker); color: var(--white); }

.btn-ghost { border-color: rgba(255, 255, 255, 0.5); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.08); color: var(--white); }

.btn-outline { border-color: var(--navy-700); color: var(--navy); background: var(--white); }
.btn-outline:hover { background: var(--tint); color: var(--navy); }

.btn-block { display: flex; width: 100%; }
.btn-small { min-height: 38px; padding: 6px 16px; font-size: 0.92rem; white-space: nowrap; }

.link-button {
  padding: 0;
  font: inherit;
  color: var(--emerald-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
  background: none;
  border: 0;
  cursor: pointer;
}
.link-button:hover { color: var(--emerald-darker); }

.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 30px;
  height: 30px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--white);
  border: 2px solid currentColor;
  border-radius: 50%;
}
.age-badge-lg { width: 44px; height: 44px; font-size: 0.95rem; }

/* ---------- Compliance bar ---------- */

.compliance-bar {
  background: var(--emerald-darker);
  color: var(--white);
  font-size: 0.86rem;
  line-height: 1.4;
}
.compliance-bar p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 10px;
  margin: 0;
  padding: 8px 0;
  text-align: center;
}
.compliance-bar a { color: var(--white); }
.compliance-bar .age-badge { width: 26px; height: 26px; font-size: 0.66rem; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  color: var(--white);
  border-bottom: 1px solid var(--navy-800);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--white);
  text-decoration: none;
}
.brand:hover { color: var(--white); }
.brand-mark { flex: none; }
.brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.brand-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.brand-tag { font-size: 0.72rem; color: var(--text-on-navy); letter-spacing: 0.04em; }

.primary-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.primary-nav a {
  display: block;
  padding: 10px 12px;
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--text-on-navy);
  text-decoration: none;
  border-radius: var(--radius-sm);
  border-bottom: 2px solid transparent;
}
.primary-nav a:hover { color: var(--white); background: var(--navy-800); }
.primary-nav a.is-current { color: var(--white); border-bottom-color: var(--emerald); border-radius: var(--radius-sm) var(--radius-sm) 0 0; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--navy-700);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  background: var(--navy);
  color: var(--white);
  padding: 56px 0 64px;
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
.hero .eyebrow { color: #6EE7B7; }
.hero .lede { max-width: 62ch; font-size: 1.1rem; color: var(--text-on-navy); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 20px; }
.hero-note { margin: 0; font-size: 0.9rem; color: var(--text-on-navy); }
.hero-note a { color: var(--white); font-weight: 700; }

.hero-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--navy-700);
  border: 1px solid var(--navy-700);
  border-radius: var(--radius);
  overflow: hidden;
}
.hero-facts li { padding: 22px 20px; background: var(--navy-800); }
.fact-figure {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.1;
  color: #6EE7B7;
}
.fact-label { display: block; margin-top: 6px; font-size: 0.86rem; line-height: 1.4; color: var(--text-on-navy); }

/* ---------- Disclosure strip ---------- */

.disclosure-strip {
  background: var(--emerald-soft);
  border-bottom: 1px solid #A7F3D0;
  font-size: 0.92rem;
}
.disclosure-strip p { margin: 0; padding: 12px 0; }

/* ---------- Sections ---------- */

.section { padding: 72px 0; }
.section-tint { background: var(--tint); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy .eyebrow { color: #6EE7B7; }
.section-navy a { color: #6EE7B7; }
.section-navy a:hover { color: var(--white); }

.section-head { max-width: 780px; margin-bottom: 36px; }
.section-head p:not(.eyebrow) { color: var(--text-muted); font-size: 1.05rem; }
.section-navy .section-head p:not(.eyebrow) { color: var(--text-on-navy); }
.section-more { margin: 28px 0 0; color: var(--text-muted); }

.verified-stamp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 14px;
  font-size: 0.9rem !important;
  color: var(--text) !important;
  background: var(--emerald-soft);
  border: 1px solid #A7F3D0;
  border-radius: 999px;
}
.verified-stamp svg { flex: none; }

/* ---------- Casino cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.casino-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--emerald);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.card-head {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 22px 18px;
  border-bottom: 1px solid var(--border);
}
.rank {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--white);
  background: var(--navy);
  border-radius: 50%;
}
.card-logo { width: 172px; max-width: calc(100% - 48px); }
.card-logo svg { display: block; width: 100%; height: auto; }
.card-title h3 { margin: 0 0 4px; font-size: 1.35rem; }

.rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin: 0;
}
.stars {
  --pct: calc(var(--rating) / 5 * 100%);
  display: inline-block;
  font-family: Arial, sans-serif;
  font-size: 1.1rem;
  line-height: 1;
  letter-spacing: 2px;
}
.stars::before {
  content: "\2605\2605\2605\2605\2605";
  color: var(--star-empty);
  background: linear-gradient(90deg, var(--emerald) var(--pct), var(--star-empty) var(--pct));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.rating-score { font-size: 1.15rem; font-weight: 800; }
.rating-max { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }
.rating-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.highlights {
  flex: 1;
  margin: 0;
  padding: 16px 22px;
  list-style: none;
}
.highlights li {
  position: relative;
  padding: 8px 0 8px 28px;
  border-bottom: 1px dashed var(--border);
}
.highlights li:last-child { border-bottom: 0; }
.highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 18px;
  height: 18px;
  background: var(--emerald) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M4.5 9.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  border-radius: 50%;
}
.hl-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.hl-value { display: block; font-weight: 600; }

.licence {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 12px;
  margin: 0 22px;
  padding: 14px 16px;
  background: var(--tint);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.licence dt {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.licence dd { margin: 2px 0 0; font-weight: 700; overflow-wrap: anywhere; }

.register-link {
  margin: 10px 22px 0;
  font-size: 0.85rem;
}

.card-cta { padding: 18px 22px 14px; }
.cta-caption {
  display: block;
  margin: 8px 0 0;
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
  color: var(--text-muted);
}

.card-compliance {
  margin: 0;
  padding: 14px 22px;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--text-muted);
  background: var(--tint);
  border-top: 1px solid var(--border);
  border-radius: 0 0 var(--radius) var(--radius);
}

/* ---------- Comparison table ---------- */

.table-tools {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 16px 20px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.tool-filters { grid-column: 1 / -1; }
.tool label,
.tool-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.tool input,
.tool select {
  width: 100%;
  min-height: 46px;
  padding: 8px 12px;
  font: inherit;
  color: var(--text);
  background: var(--white);
  border: 1px solid #94A3B8;
  border-radius: var(--radius-sm);
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 38px;
  padding: 6px 14px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--white);
  border: 1px solid #94A3B8;
  border-radius: 999px;
  cursor: pointer;
}
.chip:hover { border-color: var(--emerald-dark); }
.chip.is-active { color: var(--white); background: var(--navy); border-color: var(--navy); }

/* The filter controls need JavaScript; hide them if it is unavailable. */
html:not(.js) .table-tools,
html:not(.js) .results-count { display: none; }

.results-count { margin: 16px 0 10px; font-size: 0.9rem; font-weight: 600; color: var(--text-muted); }

.table-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-x: auto;
}

.compare-table th,
.compare-table td {
  padding: 16px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--border);
}
.compare-table thead th {
  font-family: var(--font-sans);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--navy);
  white-space: nowrap;
}
.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table tbody tr:hover { background: var(--tint); }
.compare-table tbody th { font-family: var(--font-serif); font-size: 1.05rem; white-space: nowrap; }
.compare-table tbody th a { color: var(--navy); }
.compare-table td[data-label="Editorial rating"] { white-space: nowrap; }
.compare-table td[data-label="Key highlights"] { min-width: 240px; font-size: 0.93rem; color: var(--text-muted); }
.table-score { font-weight: 800; }
.cell-cta { text-align: center !important; }
.cell-cta .cta-caption { font-size: 0.68rem; white-space: nowrap; }

.no-results { margin: 0; padding: 28px 20px; text-align: center; color: var(--text-muted); }
.table-footnote { margin: 14px 0 0; font-size: 0.85rem; color: var(--text-muted); }

/* ---------- How we review ---------- */

.criteria-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.criterion {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.criterion-weight {
  display: inline-block;
  margin-bottom: 12px;
  padding: 2px 10px;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--emerald-darker);
  background: var(--emerald-soft);
  border: 1px solid #A7F3D0;
  border-radius: 999px;
}
.criterion p { margin: 0; font-size: 0.95rem; color: var(--text-muted); }

/* ---------- Regulatory policy ---------- */

.policy-summary {
  margin-bottom: 36px;
  padding: 24px 28px;
  background: var(--navy-800);
  border-left: 4px solid var(--emerald);
  border-radius: var(--radius-sm);
}
.policy-summary h3 { color: #6EE7B7; }
.policy-summary p { margin: 0; font-size: 1.08rem; color: var(--white); }

.policy-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 0 0 40px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.policy-steps > li {
  position: relative;
  padding: 24px 24px 20px 72px;
  background: var(--navy-800);
  border: 1px solid var(--navy-700);
  border-radius: var(--radius);
  counter-increment: step;
}
.policy-steps > li::before {
  content: counter(step);
  position: absolute;
  left: 22px;
  top: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--white);
  background: var(--emerald-dark);
  border-radius: 50%;
}
.policy-steps p,
.policy-steps ul { font-size: 0.96rem; color: var(--text-on-navy); }
.policy-steps > li > :last-child { margin-bottom: 0; }
.policy-steps ul li { margin-bottom: 4px; }

.register-table-wrap {
  padding: 24px;
  background: var(--white);
  color: var(--text);
  border-radius: var(--radius);
  overflow-x: auto;
}
.register-table-wrap a { color: var(--emerald-dark); }
.register-table-wrap a:hover { color: var(--emerald-darker); }
.register-table th,
.register-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.register-table thead th {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.register-table tbody th { font-family: var(--font-sans); }
.register-note { margin: 14px 0 0; font-size: 0.86rem; color: var(--text-muted); }

/* ---------- Safer gambling ---------- */

.helpline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: 28px;
  padding: 28px 32px;
  color: var(--white);
  background: var(--navy);
  border-radius: var(--radius);
}
.helpline-label { margin: 0 0 4px; font-size: 0.9rem; color: var(--text-on-navy); }
.helpline-number { margin: 0; font-family: var(--font-serif); font-size: clamp(1.8rem, 5vw, 2.6rem); font-weight: 700; line-height: 1.1; }
.helpline-number a { color: var(--white); text-decoration: none; }
.helpline-alt { margin: 0; color: var(--text-on-navy); }
.helpline-alt a { color: #6EE7B7; font-weight: 700; }

.safer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 36px;
}
.safer-card {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.safer-card .age-badge { margin-bottom: 12px; color: var(--navy); }
.safer-card p,
.safer-card ul { font-size: 0.95rem; color: var(--text-muted); }
.safer-card > :last-child { margin-bottom: 0; }

.resource-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.resource-list li {
  padding: 16px 18px;
  background: var(--tint);
  border: 1px solid var(--border);
  border-left: 4px solid var(--emerald);
  border-radius: var(--radius-sm);
}
.resource-list a { display: block; font-weight: 700; }
.resource-list span { font-size: 0.9rem; color: var(--text-muted); }

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.owner-card,
.imprint {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.owner-card dl,
.imprint dl { margin: 0; }
.owner-card dl > div,
.imprint dl > div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}
.imprint dl > div { grid-template-columns: 220px minmax(0, 1fr); }
.owner-card dl > div:last-child,
.imprint dl > div:last-child { border-bottom: 0; }
.owner-card dt,
.imprint dt { font-size: 0.86rem; font-weight: 700; color: var(--text-muted); }
.owner-card dd,
.imprint dd { margin: 0; overflow-wrap: anywhere; }

/* ---------- Legal suite ---------- */

.legal-suite {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.legal-tabs {
  display: flex;
  gap: 2px;
  padding: 8px 8px 0;
  background: var(--navy);
  overflow-x: auto;
}
.legal-tab {
  flex: none;
  padding: 12px 16px;
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--text-on-navy);
  text-decoration: none;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.legal-tab:hover { color: var(--white); background: var(--navy-800); }
.legal-tab[aria-selected="true"] { color: var(--navy); background: var(--white); }
.legal-tab:focus-visible { outline-offset: -3px; }

.legal-panel {
  padding: 32px;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.legal-panel + .legal-panel { border-top: 1px solid var(--border); }
.legal-panel > h3 { font-size: 1.5rem; }
.legal-panel > * { max-width: 82ch; }
.legal-panel > .legal-table,
.legal-panel > .imprint { max-width: 100%; }
.legal-panel > :last-child { margin-bottom: 0; }

.legal-table { margin-bottom: 1em; border: 1px solid var(--border); }
.legal-table th,
.legal-table td {
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
}
.legal-table thead th { font-family: var(--font-sans); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; background: var(--tint); }
.legal-table tbody th { font-family: var(--font-sans); }

/* ---------- Footer ---------- */

.site-footer {
  padding: 56px 0 32px;
  font-size: 0.93rem;
  color: var(--text-on-navy);
  background: var(--navy);
}
.site-footer a,
.site-footer .link-button { color: var(--white); }
.site-footer a:hover,
.site-footer .link-button:hover { color: #6EE7B7; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.4fr;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--navy-700);
}
.footer-name { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 700; color: var(--white); }
.site-footer h2 {
  margin-bottom: 14px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6EE7B7;
}
.footer-nav ul { margin: 0; padding: 0; list-style: none; }
.footer-nav li { margin-bottom: 8px; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.footer-contact p { margin-bottom: 6px; overflow-wrap: anywhere; }

.footer-safer {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid var(--navy-700);
}
.footer-safer p { margin: 0; }
.footer-safer strong { color: var(--white); }
.footer-legal { margin: 24px 0 8px; font-size: 0.85rem; }
.footer-copy { margin: 0; font-size: 0.85rem; }

/* ---------- Cookie banner ---------- */

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 150;
  max-width: 880px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--emerald);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.25);
}
.cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
}
.cookie-inner h2 { margin-bottom: 4px; font-size: 1.05rem; }
.cookie-inner p { margin: 0; font-size: 0.9rem; color: var(--text-muted); }
.cookie-actions { display: flex; flex: none; gap: 10px; }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .safer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 8px 20px 16px;
    background: var(--navy);
    border-bottom: 1px solid var(--navy-700);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.3);
  }
  .primary-nav ul { flex-direction: column; }
  .primary-nav a { padding: 12px; border-bottom: 0; border-left: 3px solid transparent; }
  .primary-nav a.is-current { border-left-color: var(--emerald); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
  .js .primary-nav:not(.is-open) { display: none; }

  /* Without JavaScript the menu cannot be toggled, so show it in the flow. */
  html:not(.js) .nav-toggle { display: none; }
  html:not(.js) .header-inner { flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
  html:not(.js) .primary-nav { position: static; width: 100%; padding: 0; border: 0; box-shadow: none; }
  html:not(.js) .primary-nav ul { flex-direction: row; }

  .hero-inner,
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .criteria-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .policy-steps { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  /* Comparison table becomes stacked cards */
  .table-wrap { background: transparent; border: 0; overflow: visible; }
  .compare-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .compare-table,
  .compare-table tbody,
  .compare-table tr,
  .compare-table th,
  .compare-table td { display: block; }
  .compare-table tbody tr {
    margin-bottom: 16px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
  }
  .compare-table tbody tr[hidden] { display: none; }
  .compare-table tbody tr:hover { background: var(--white); }
  .compare-table tbody th {
    padding: 14px 16px;
    font-size: 1.15rem;
    white-space: normal;
    color: var(--white);
    background: var(--navy);
    border-bottom: 0;
  }
  .compare-table tbody th a { color: var(--white); }
  .compare-table td {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 12px;
    padding: 12px 16px;
    white-space: normal !important;
    min-width: 0 !important;
    color: var(--text) !important;
  }
  .compare-table td::before {
    content: attr(data-label);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
  }
  .compare-table td.cell-cta { display: block; border-bottom: 0; }
  .compare-table td.cell-cta::before { content: none; }
  .compare-table td.cell-cta .btn { display: flex; width: 100%; min-height: 46px; }
  .no-results { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); }
}

@media (max-width: 680px) {
  .section { padding: 52px 0; }
  .hero { padding: 40px 0 48px; }
  .brand-tag { display: none; }

  .card-grid,
  .criteria-grid,
  .safer-grid,
  .footer-grid { grid-template-columns: 1fr; }

  .table-tools { grid-template-columns: 1fr; }
  .helpline { padding: 24px 20px; }
  .legal-panel { padding: 24px 20px; }
  .policy-steps > li { padding: 68px 20px 20px 20px; }
  .register-table-wrap { padding: 16px; }
  .register-table { min-width: 520px; }

  .owner-card dl > div,
  .imprint dl > div { grid-template-columns: 1fr; gap: 2px; }

  .legal-table,
  .legal-table tbody,
  .legal-table tr,
  .legal-table th,
  .legal-table td { display: block; }
  .legal-table thead { display: none; }
  .legal-table tbody th { padding-bottom: 2px; border-bottom: 0; }
  .legal-table td { padding-top: 2px; }

  .cookie-inner { flex-direction: column; align-items: stretch; }
  .cookie-actions .btn { flex: 1; }
  .footer-safer { align-items: flex-start; }
}

@media (max-width: 400px) {
  .hero-facts { grid-template-columns: 1fr; }
  .licence { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@media print {
  .site-header,
  .cookie-banner,
  .table-tools,
  .nav-toggle { display: none !important; }
  .legal-panel[hidden] { display: block !important; }
}
