/* ============================================================
   TWO4DELIVERY – Cookie Banner & GDPR Page Styles
   cookies.css
   ============================================================ */

/* ── Cookie Banner ────────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #0f172a;
  border-top: 3px solid var(--clr-primary, #2563eb);
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.4);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.cookie-banner__text {
  color: #cbd5e1;
  font-size: 0.875rem;
  line-height: 1.6;
  flex: 1;
}

.cookie-banner__text a {
  color: var(--clr-primary, #2563eb);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  transition: color 0.2s;
}

.cookie-banner__text a:hover {
  color: #60a5fa;
}

.cookie-banner__actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 0.6rem 1.4rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  font-family: inherit;
  white-space: nowrap;
}

.cookie-btn--accept {
  background: var(--clr-primary, #2563eb);
  color: #fff;
  border-color: var(--clr-primary, #2563eb);
}

.cookie-btn--accept:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
  transform: translateY(-1px);
}

.cookie-btn--reject {
  background: transparent;
  color: #94a3b8;
  border-color: #334155;
}

.cookie-btn--reject:hover {
  color: #fff;
  border-color: #64748b;
  transform: translateY(-1px);
}

/* ── GDPR Checkbox în formular ───────────────────────────── */
.form-gdpr {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  background: rgba(37, 99, 235, 0.06);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 10px;
  width: 100%;
  box-sizing: border-box;
  grid-column: 1 / -1;
}

.form-gdpr__label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: #374151;
  line-height: 1.6;
}

.form-gdpr__checkbox {
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  margin-top: 2px;
  accent-color: var(--clr-primary, #2563eb);
  cursor: pointer;
}

.form-gdpr__label a {
  color: var(--clr-primary, #2563eb);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-gdpr__label a:hover {
  color: #1d4ed8;
}

.form-gdpr .form-error-msg {
  display: block;
  margin-top: 0.5rem;
  margin-left: 2rem;
  font-size: 0.8rem;
  color: #ef4444;
  min-height: 1.2em;
}

/* ── GDPR Page ───────────────────────────────────────────── */
.gdpr-page {
  padding-top: 100px;
  padding-bottom: 80px;
  min-height: 100vh;
}

.gdpr-page .container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.gdpr-hero {
  text-align: center;
  padding: 3rem 0 2.5rem;
  border-bottom: 1px solid rgba(37, 99, 235, 0.15);
  margin-bottom: 3rem;
}

.gdpr-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(37, 99, 235, 0.1);
  color: var(--clr-primary, #2563eb);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 50px;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.gdpr-hero__title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--clr-text, #0f172a);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.gdpr-hero__title span {
  color: var(--clr-primary, #2563eb);
}

.gdpr-hero__subtitle {
  color: var(--clr-text-muted, #64748b);
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

.gdpr-updated {
  display: inline-block;
  background: #f1f5f9;
  border-radius: 6px;
  padding: 0.25rem 0.75rem;
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 1rem;
}

.gdpr-content {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.gdpr-section {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 2rem 2.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.gdpr-section__number {
  width: 36px;
  height: 36px;
  background: var(--clr-primary, #2563eb);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.gdpr-section__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--clr-text, #0f172a);
  margin-bottom: 0.75rem;
}

.gdpr-section p {
  color: var(--clr-text-muted, #475569);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

.gdpr-section p:last-child {
  margin-bottom: 0;
}

.gdpr-section ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.gdpr-section ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: var(--clr-text-muted, #475569);
  font-size: 0.95rem;
  line-height: 1.6;
}

.gdpr-section ul li::before {
  content: '';
  width: 8px;
  height: 8px;
  min-width: 8px;
  background: var(--clr-primary, #2563eb);
  border-radius: 50%;
  margin-top: 7px;
}

.gdpr-section a {
  color: var(--clr-primary, #2563eb);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.gdpr-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.9rem;
}

.gdpr-table th {
  background: var(--clr-primary, #2563eb);
  color: #fff;
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 700;
  font-size: 0.85rem;
}

.gdpr-table th:first-child { border-radius: 8px 0 0 0; }
.gdpr-table th:last-child  { border-radius: 0 8px 0 0; }

.gdpr-table td {
  padding: 0.7rem 1rem;
  color: #475569;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: top;
  line-height: 1.5;
}

.gdpr-table tr:last-child td { border-bottom: none; }
.gdpr-table tr:nth-child(even) td { background: #f8fafc; }

.gdpr-contact-box {
  background: linear-gradient(135deg, rgba(37,99,235,0.08) 0%, rgba(37,99,235,0.03) 100%);
  border: 2px solid rgba(37, 99, 235, 0.2);
  border-radius: 14px;
  padding: 1.5rem 2rem;
  text-align: center;
  margin-top: 1.5rem;
}

.gdpr-contact-box p {
  margin-bottom: 0.5rem;
  color: #0f172a;
  font-weight: 600;
}

.gdpr-contact-box a {
  font-size: 1.1rem;
  font-weight: 700;
}

/* ── Responsive Banner ───────────────────────────────────── */
@media (max-width: 640px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem 1.25rem 1.5rem;
  }

  .cookie-banner__actions {
    width: 100%;
  }

  .cookie-btn {
    flex: 1;
    text-align: center;
  }

  .gdpr-section {
    padding: 1.5rem 1.25rem;
  }

  .gdpr-table {
    font-size: 0.8rem;
  }

  .gdpr-table th,
  .gdpr-table td {
    padding: 0.5rem 0.6rem;
  }
}
