/* ────────────────────────────────────────────────────────────
   UrmeVii — GDPR Banner, Footer Trust Bar, Legal Pages
   ──────────────────────────────────────────────────────────── */

/* ── Legal pages ─────────────────────────────────────────── */
.legal-page {
  max-width: 780px;
  padding-top: var(--space-12);
  padding-bottom: var(--space-16);
}

.legal-page__title {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

.legal-page__meta {
  font-size: var(--text-sm);
  color: var(--color-muted);
  margin-bottom: var(--space-10);
}

.legal-section {
  margin-bottom: var(--space-8);
}

.legal-section h2 {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  color: var(--color-primary);
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--color-border);
}

.legal-section h3 {
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--color-text);
  margin: var(--space-4) 0 var(--space-2);
}

.legal-section p,
.legal-section li {
  font-size: var(--text-base);
  line-height: var(--leading-loose);
  color: var(--color-text-light);
}

.legal-section ul {
  padding-left: var(--space-6);
  margin-bottom: var(--space-4);
}

.legal-section li {
  margin-bottom: var(--space-2);
}

/* Cookie table */
.legal-table-wrap {
  overflow-x: auto;
  margin: var(--space-4) 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.legal-table th {
  background: var(--color-bg-alt);
  padding: var(--space-3) var(--space-4);
  text-align: left;
  font-weight: 700;
  color: var(--color-text);
  border-bottom: 2px solid var(--color-border);
}

.legal-table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-light);
  vertical-align: top;
}

.legal-table tr:last-child td {
  border-bottom: none;
}

.badge {
  display: inline-block;
  padding: 2px var(--space-2);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 700;
}

.badge--necessary  { background: var(--color-success-bg); color: var(--color-success); }
.badge--statistics { background: var(--color-info-bg);    color: var(--color-info); }
.badge--marketing  { background: var(--color-warning-bg); color: var(--color-warning); }

/* ── Footer — zona principala ────────────────────────────── */
.site-footer__main {
  background: var(--color-primary);
  color: #fff;
  padding: var(--space-12) 0 0;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: var(--space-8);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer__brand img {
  filter: brightness(0) invert(1);
  display: block;
  margin-bottom: var(--space-3);
}

.site-footer__tagline {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.site-footer__nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.site-footer__nav a {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.site-footer__nav a:hover {
  color: var(--color-accent);
}

.site-footer__company {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
  line-height: var(--leading-loose);
}

.site-footer__company a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.site-footer__company a:hover {
  color: var(--color-accent);
}

.site-footer__copy {
  padding: var(--space-4) 0;
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.4);
}

/* ── Footer — trust bar ──────────────────────────────────── */
.site-footer__trust {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
}

.site-footer__trust-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) 0;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.site-footer__anpc {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.site-footer__anpc a {
  display: inline-block;
  line-height: 1;
}

.site-footer__anpc img {
  display: block;
  height: 55px;
  width: auto;
}

.site-footer__payment img {
  display: block;
  height: 50px;
  width: auto;
}

/* ── GDPR Banner ─────────────────────────────────────────── */
.gdpr-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-toast);
  background: rgba(28, 28, 26, 0.97);
  color: #fff;
  padding: var(--space-4) var(--space-6);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.3);
  display: none;
}

.gdpr-banner.is-visible {
  display: block;
}

.gdpr-banner__main {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.gdpr-banner__text {
  flex: 1;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.85);
  min-width: 200px;
}

.gdpr-banner__text a {
  color: var(--color-accent-soft);
  text-decoration: underline;
}

.gdpr-banner__actions {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.gdpr-btn {
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 700;
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
  transition: background var(--transition-fast), color var(--transition-fast);
  white-space: nowrap;
}

.gdpr-btn--accept {
  background: var(--color-accent);
  color: var(--color-primary);
}

.gdpr-btn--accept:hover {
  background: var(--color-accent-soft);
}

.gdpr-btn--reject {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.5);
}

.gdpr-btn--reject:hover {
  border-color: #fff;
}

.gdpr-btn--customize {
  background: transparent;
  color: rgba(255,255,255,0.6);
  text-decoration: underline;
  padding: var(--space-2) 0;
  font-weight: 400;
}

.gdpr-btn--customize:hover {
  color: #fff;
}

/* Panou detalii consent */
.gdpr-banner__detail {
  display: none;
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: var(--space-4);
  padding-top: var(--space-4);
}

.gdpr-banner__detail.is-open {
  display: block;
}

.gdpr-toggle-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-3) 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.gdpr-toggle-row:last-of-type {
  border-bottom: none;
}

.gdpr-toggle-label {
  flex: 1;
}

.gdpr-toggle-label strong {
  display: block;
  font-size: var(--text-sm);
  color: #fff;
  margin-bottom: var(--space-1);
}

.gdpr-toggle-label span {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
}

/* Toggle switch */
.gdpr-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.gdpr-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.gdpr-switch__slider {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.2);
  border-radius: 24px;
  transition: background var(--transition-fast);
  cursor: pointer;
}

.gdpr-switch__slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform var(--transition-fast);
}

.gdpr-switch input:checked + .gdpr-switch__slider {
  background: var(--color-accent);
}

.gdpr-switch input:checked + .gdpr-switch__slider::before {
  transform: translateX(20px);
}

.gdpr-switch input:disabled + .gdpr-switch__slider {
  opacity: 0.5;
  cursor: not-allowed;
}

.gdpr-banner__detail-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: var(--space-4);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .site-footer__inner { grid-template-columns: 1fr; }

  .site-footer__trust-inner { justify-content: center; flex-direction: column; }

  .gdpr-banner__main {
    flex-direction: column;
    align-items: flex-start;
  }

  .gdpr-banner__actions {
    width: 100%;
  }

  .gdpr-btn--accept,
  .gdpr-btn--reject {
    flex: 1;
    text-align: center;
  }
}
