/* ============================================================
   Legal Pages — DRAFSH Web Studio
   Typo: Cormorant Garamond (titres) + DM Sans (body)
   ============================================================ */

.legal-page {
  padding: 140px 0 80px;
  background: #FEFDFB;
  min-height: 100vh;
}

.legal-container {
  max-width: 780px;
  margin: 0 auto;
}

.legal-back {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: #A0522D;
  text-decoration: none;
  margin-bottom: 40px;
  transition: opacity 0.2s ease;
}
.legal-back:hover {
  opacity: 0.7;
}

.legal-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: #1A1A1A;
  line-height: 1.2;
  margin-bottom: 12px;
}

.legal-update {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  color: #6B6B6B;
  margin-bottom: 56px;
  padding-bottom: 32px;
  border-bottom: 1px solid #E8E4DF;
}

.legal-section {
  margin-bottom: 48px;
}

.legal-section h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 1.5rem;
  color: #1A1A1A;
  margin-bottom: 16px;
  line-height: 1.3;
}

.legal-section h3 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: #1A1A1A;
  margin: 24px 0 10px;
}

.legal-section p {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: #6B6B6B;
  line-height: 1.7;
  margin-bottom: 12px;
}

.legal-section ul {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.legal-section ul li {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: #6B6B6B;
  line-height: 1.7;
  padding-left: 20px;
  position: relative;
  margin-bottom: 6px;
}

.legal-section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #A0522D;
}

.legal-section a {
  color: #A0522D;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.legal-section a:hover {
  border-bottom-color: #A0522D;
}

.legal-section strong {
  color: #1A1A1A;
  font-weight: 600;
}

/* Table for privacy policy */
.legal-table-wrap {
  overflow-x: auto;
  margin: 16px 0 20px;
  -webkit-overflow-scrolling: touch;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
}

.legal-table th,
.legal-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid #E8E4DF;
  color: #6B6B6B;
  line-height: 1.6;
}

.legal-table th {
  font-weight: 600;
  color: #1A1A1A;
  background: rgba(160, 82, 45, 0.04);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.legal-inline-btn {
  display: inline;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: #A0522D;
  background: none;
  border: none;
  border-bottom: 1px dashed #A0522D;
  cursor: pointer;
  padding: 0;
  transition: opacity 0.2s ease;
}
.legal-inline-btn:hover {
  opacity: 0.7;
}

/* Footer legal links */
.footer-legal {
  text-align: center;
  padding: 20px 0 0;
  margin-top: 16px;
  border-top: 1px solid var(--line, #E0DDD8);
}

.footer-legal a {
  font-family: 'DM Sans', var(--font-body, sans-serif);
  font-size: 0.8125rem;
  color: #6B6B6B;
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-legal a:hover {
  color: #A0522D;
}

.footer-legal-sep {
  display: inline-block;
  margin: 0 10px;
  color: #E8E4DF;
  font-size: 0.8125rem;
}

/* Cookie consent banner */
.cookie-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.cookie-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #FEFDFB;
  border-top: 1px solid #E8E4DF;
  padding: 32px 24px;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.cookie-banner.active {
  transform: translateY(0);
}

.cookie-banner-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.cookie-banner-title {
  font-family: 'Cormorant Garamond', var(--font-heading, serif);
  font-weight: 700;
  font-size: 1.35rem;
  color: #1A1A1A;
  margin-bottom: 10px;
}

.cookie-banner-text {
  font-family: 'DM Sans', var(--font-body, sans-serif);
  font-size: 0.9rem;
  color: #6B6B6B;
  line-height: 1.7;
  margin-bottom: 6px;
}

.cookie-banner-link {
  display: inline-block;
  font-family: 'DM Sans', var(--font-body, sans-serif);
  font-size: 0.85rem;
  color: #A0522D;
  text-decoration: none;
  margin-bottom: 20px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.cookie-banner-link:hover {
  border-bottom-color: #A0522D;
}

.cookie-banner-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cookie-btn {
  font-family: 'DM Sans', var(--font-body, sans-serif);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 12px 28px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.cookie-btn-refuse {
  background: transparent;
  color: #6B6B6B;
  border: 1px solid #E8E4DF;
}
.cookie-btn-refuse:hover {
  border-color: #6B6B6B;
  color: #1A1A1A;
}

.cookie-btn-accept {
  background: #A0522D;
  color: #fff;
}
.cookie-btn-accept:hover {
  background: #8B4726;
}

/* Responsive */
@media (max-width: 768px) {
  .legal-page {
    padding: 120px 0 60px;
  }
  .legal-container {
    padding: 0 20px;
  }
  .legal-title {
    font-size: 1.8rem;
  }
  .legal-section h2 {
    font-size: 1.25rem;
  }
  .legal-table th,
  .legal-table td {
    padding: 10px 12px;
    font-size: 0.82rem;
  }
  .cookie-banner {
    padding: 24px 16px;
  }
  .cookie-banner-title {
    font-size: 1.15rem;
  }
  .cookie-banner-actions {
    flex-direction: column;
  }
  .cookie-btn {
    width: 100%;
  }
}
