body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

#subtitleData {
  display: none;
}

/* ─────────────── PAGE CONTENT ─────────────── */
.main-content {
  max-width: 1024px;
  margin: 0 auto;
  padding: 16px 16px 10px;
  background-color: #ffffff; /* optional – keep it consistent with site look */
  box-sizing: border-box;
  overflow-x: hidden;
  border-radius: 0 0 16px 16px; /* ← round bottom corners */
}

.main-content h4 {
  margin-top: 0;
  font-size: 18px;
}

.main-content p {
  font-size: 15px;
  line-height: 1.6;
  margin-top: 8px;
}

h4 {
  margin-bottom: 0;
}

/* Optional: Handle small screens gracefully */
@media (max-width: 600px) {
  .main-content {
    padding: 20px 12px 32px;
  }

  .main-content h4 {
    font-size: 16px;
  }

  .main-content p {
    font-size: 14px;
  }
}

/* ─────────────── FOOTER ─────────────── */
.site-footer {
  max-width: 1024px;
  margin: 10px auto 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}
.site-footer a {
  color: rgba(255, 255, 255, 0.9);
}

/* ─────────────── LEGAL NOTICE (pop-up, styled like the contact form) ─────────────── */
.legal-dialog {
  width: min(540px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  padding: 0;
  border: 0;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(30, 20, 60, 0.35);
  color: #1d2433;
  overflow: auto;
}
.legal-dialog::backdrop { background: rgba(28, 22, 52, 0.55); backdrop-filter: blur(2px); }
.legal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: linear-gradient(135deg, #3d5874 0%, #2c3e50 100%);
  color: #fff;
}
.legal-head h3 { margin: 0; font-size: 18px; }
.legal-flag { font-size: 17px; vertical-align: -1px; }
.legal-x {
  border: 0; background: rgba(255, 255, 255, 0.18); color: #fff;
  width: 32px; height: 32px; border-radius: 50%; font-size: 20px; line-height: 1; cursor: pointer;
}
.legal-x:hover { background: rgba(255, 255, 255, 0.3); }
.legal-body { padding: 18px 20px 4px; font-size: 14px; line-height: 1.55; }
.legal-tagline {
  margin: 0 0 16px; padding: 8px 12px; border-radius: 10px; text-align: center;
  background: #f1f4f9; color: #2c3e50; font-weight: 600;
}
.legal-list { display: grid; grid-template-columns: max-content 1fr; gap: 10px 16px; margin: 0; }
.legal-list dt { font-weight: 600; color: #555; }
.legal-list dd { margin: 0; }
.legal-foot { display: flex; justify-content: flex-end; padding: 14px 20px 18px; }
.legal-close {
  font: inherit; font-size: 15px; font-weight: 600; border: 0; border-radius: 10px; padding: 10px 18px;
  cursor: pointer; color: #fff; background: linear-gradient(135deg, #3d5874 0%, #2c3e50 100%);
  box-shadow: 0 3px 10px rgba(44, 62, 80, 0.28);
}
.legal-close:hover { background: linear-gradient(135deg, #46637f 0%, #34495e 100%); }
@media (max-width: 600px) {
  .legal-list { grid-template-columns: 1fr; gap: 0; }
  .legal-list dd { margin-bottom: 10px; }
}

/* ─────────────── COOKIE BANNER ─────────────── */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1000;
  max-width: 560px;
  margin: 0 auto;
  padding: 16px 18px;
  background: #ffffff;
  color: #222;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  font-size: 14px;
  line-height: 1.5;
}
.cookie-banner[hidden] {
  display: none;
}
.cookie-title {
  margin: 0 0 4px;
  font-weight: 600;
}
.cookie-text {
  margin: 0 0 12px;
}
.cookie-actions {
  display: flex;
  gap: 10px;
}
/* Both choices look identical: refusing must be as easy as accepting. */
.cookie-btn {
  flex: 1;
  padding: 9px 12px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: #2c3e50;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}
.cookie-btn:hover,
.cookie-btn:focus-visible {
  background: #3d5670;
}

/* ─────────────── NACRES VERSION NOTICE AND BADGES ─────────────── */
.version-notice {
  max-width: 1024px;
  margin: 0 auto;
  padding: 8px 16px;
  box-sizing: border-box;
  background: #fff3cd;
  color: #6b5200;
  border-bottom: 1px solid #ffe69c;
  font-size: 14px;
  text-align: center;
}
.version-notice[hidden] {
  display: none;
}
.badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.6;
  white-space: nowrap;
  vertical-align: middle;
}
.badge-new { background: #dcf3e3; color: #17663a; }
.badge-changed { background: #fff1c2; color: #7a5a00; }
.badge-retired, .badge-removed { background: #ececec; color: #555; }

/* ─────────────── iPHONE / iPAD: NO ZOOM ON TEXT FIELDS ─────────────── */
/* iOS zooms into any text field whose text is under 16px when it is tapped.
   16px stops that; the feature test below only matches iOS, so desktop sizes stay as they are. */
@supports (-webkit-touch-callout: none) {
  input:not([type="checkbox"]):not([type="radio"]),
  textarea {
    font-size: 16px !important;
  }
}
