/* ─── LEGAL PAGES ─── */
.legal-page { padding-top: calc(var(--header-h) + 3rem); padding-bottom: 4rem; min-height: 70vh; }
.legal-page .container { max-width: 820px; }
.legal-page h1 { font-family: var(--font-display); font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 0.5rem; }
.legal-meta { font-size: 0.875rem; color: var(--text-dim); margin-bottom: 2.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.legal-page h2 { font-size: 1.25rem; font-weight: 700; color: var(--text); margin: 2rem 0 0.75rem; }
.legal-page h3 { font-size: 1.0625rem; font-weight: 600; margin: 1.25rem 0 0.5rem; }
.legal-page p, .legal-page li { font-size: 0.9375rem; color: var(--text-muted); margin-bottom: 0.75rem; line-height: 1.75; }
.legal-page ul, .legal-page ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.legal-page li { margin-bottom: 0.375rem; }
.legal-page a { color: var(--cyan); }
.legal-box { padding: 1.25rem 1.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin: 1.5rem 0; }
.legal-box strong { color: var(--text); }
.legal-nav { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2rem; }
.legal-nav a { padding: 0.5rem 1rem; font-size: 0.8125rem; font-weight: 600; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; color: var(--text-muted); transition: all var(--transition); }
.legal-nav a:hover, .legal-nav a.active { border-color: var(--cyan); color: var(--cyan); }
.legal-nav--wrap { flex-wrap: wrap; }
.legal-back { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; font-weight: 600; color: var(--cyan); margin-bottom: 1.5rem; }

/* ─── COOKIE BANNER (Google Ads compliance) ─── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 1.25rem;
  background: rgba(13, 19, 33, 0.97);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(16px);
  transform: translateY(100%);
  transition: transform 0.4s var(--ease);
}

.cookie-banner.visible { transform: translateY(0); }

.cookie-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.cookie-text { flex: 1; min-width: 280px; }
.cookie-text p { font-size: 0.875rem; color: var(--text-muted); margin: 0; line-height: 1.6; }
.cookie-text a { color: var(--cyan); font-weight: 600; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ─── COMPLIANCE BAR ─── */
.compliance-bar {
  padding: 1rem 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.6;
}

.compliance-bar a { color: var(--cyan); }

/* ─── FORM CHECKBOX ─── */
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.form-check input {
  width: 18px;
  height: 18px;
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: var(--cyan);
}

.form-check label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
  cursor: pointer;
}

.form-check label a { color: var(--cyan); }

.footer-col--legal a { font-size: 0.875rem; }

.ad-disclaimer {
  font-size: 0.6875rem;
  color: var(--text-dim);
  margin-top: 0.5rem;
  font-style: italic;
}

.hero-badge-note {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.6875rem;
  color: var(--text-dim);
  font-style: italic;
}

.trust-bar .trust-note {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-align: center;
  margin-top: 0.75rem;
  font-style: italic;
}

@media (max-width: 768px) {
  .cookie-inner { flex-direction: column; align-items: stretch; }
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1; min-width: 0; }
}

/* ─── COOKIE ICON ─── */
.cookie-icon { font-size: 2rem; flex-shrink: 0; }
.cookie-text strong { display: block; color: var(--text); margin-bottom: 0.35rem; font-size: 1rem; }

/* ─── COOKIE MODAL ─── */
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}

.cookie-modal.open { opacity: 1; visibility: visible; }

.cookie-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.cookie-modal-panel {
  position: relative;
  width: min(520px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  background: var(--bg-2);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.cookie-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--surface);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
}

.cookie-modal-panel h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.cookie-modal-intro {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.cookie-option {
  padding: 1rem;
  margin-bottom: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.cookie-option--locked { opacity: 0.85; }

.cookie-option-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
}

.cookie-option-head label { cursor: pointer; font-size: 0.9375rem; }
.cookie-option p { font-size: 0.8125rem; color: var(--text-dim); margin: 0; }

.cookie-tag {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.15rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--green);
  background: rgba(52, 211, 153, 0.12);
  border-radius: 999px;
}

.cookie-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.cookie-modal-actions .btn { flex: 1; min-width: 140px; }

.cookie-modal-foot {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.8125rem;
}

.cookie-modal-foot a { color: var(--cyan); margin: 0 0.35rem; }

/* ─── MAP COOKIE PLACEHOLDER ─── */
.map-cookie-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  padding: 2rem;
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--border-light);
  border-radius: var(--radius);
}

.map-cookie-placeholder p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  max-width: 320px;
}

.map-container[data-cookie-map] iframe,
.map-container[data-cookie-map] .map-cookie-placeholder {
  width: 100%;
  height: 280px;
  border: 0;
}

/* ─── COOKIE TABLE (legal page) ─── */
.cookie-table-wrap { overflow-x: auto; margin: 1.5rem 0; }

.cookie-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.cookie-table th,
.cookie-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border: 1px solid var(--border);
}

.cookie-table th {
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
}

.cookie-table td { color: var(--text-muted); }

/* ─── TRUST / COMPLIANCE SECTION ─── */
.trust-compliance {
  padding: 4rem 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust-compliance-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.trust-item {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.trust-item-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.trust-item h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.35rem; }
.trust-item p { font-size: 0.8125rem; color: var(--text-muted); margin: 0; }

.btn-cookie-settings {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--cyan);
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-cookie-settings:hover {
  background: rgba(0, 212, 255, 0.15);
  color: var(--text);
}

.trust-item a { color: var(--cyan); }
.trust-item a:hover { text-decoration: underline; }


@media (max-width: 768px) {
  .cookie-inner { flex-direction: column; align-items: stretch; }
  .cookie-actions .btn { width: 100%; }
}
