/* ============================================
   LEGAL PAGES - The King of Content
   Privacy Policy | Cookie Policy | Legal Notice
   ============================================ */

/* --- Main Wrapper --- */
.legal-page {
  padding-top: 140px;
  padding-bottom: 80px;
  background: var(--white);
  min-height: 100vh;
  font-family: var(--font);
}

/* --- Container --- */
.legal-page .container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Page Title (h1) --- */
.legal-page h1 {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 8px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* --- Last Updated Date --- */
.legal-date {
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 48px;
  display: block;
}

/* --- Section Headings (h2) --- */
.legal-page h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--black);
  margin-top: 40px;
  margin-bottom: 16px;
  padding-left: 16px;
  border-left: 4px solid var(--purple);
  line-height: 1.3;
}

/* --- Subsection Headings (h3) --- */
.legal-page h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--black);
  margin-top: 28px;
  margin-bottom: 12px;
  line-height: 1.4;
}

/* --- Body Text --- */
.legal-page p {
  color: var(--gray-700);
  line-height: 1.8;
  margin-bottom: 16px;
  font-size: 0.95rem;
}

/* --- Lists --- */
.legal-page ul,
.legal-page ol {
  color: var(--gray-700);
  line-height: 1.8;
  font-size: 0.95rem;
  margin-bottom: 16px;
  padding-left: 24px;
}

.legal-page ul {
  list-style-type: disc;
}

.legal-page ol {
  list-style-type: decimal;
}

.legal-page li {
  margin-bottom: 8px;
}

.legal-page li::marker {
  color: var(--purple);
}

/* --- Links --- */
.legal-page a {
  color: var(--purple);
  text-decoration: none;
  transition: var(--transition);
}

.legal-page a:hover {
  text-decoration: underline;
  color: var(--purple-dark);
}

/* --- Bold / Strong --- */
.legal-page strong {
  font-weight: 600;
  color: var(--black);
}

/* --- Tables --- */
.legal-page table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  margin-top: 8px;
  border-radius: var(--radius);
  overflow: hidden;
}

.legal-page th {
  background: var(--purple-bg);
  text-align: left;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--black);
  border-bottom: 2px solid var(--purple-light);
}

.legal-page td {
  padding: 12px 16px;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.88rem;
  color: var(--gray-700);
  vertical-align: top;
}

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

.legal-page tr:hover td {
  background: #fafafa;
}

/* --- Contact Info Box --- */
.legal-contact {
  background: var(--purple-bg);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-top: 32px;
  margin-bottom: 24px;
}

.legal-contact p {
  margin-bottom: 8px;
  font-size: 0.93rem;
}

.legal-contact p:last-child {
  margin-bottom: 0;
}

.legal-contact strong {
  color: var(--purple-dark);
}

/* --- Legal Section Wrapper --- */
.legal-section {
  margin-top: 8px;
  margin-bottom: 8px;
}

/* --- Info Box (reusable highlight block) --- */
.legal-info-box {
  background: var(--purple-bg);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 16px 0 20px;
}

.legal-info-box ul {
  margin-bottom: 0;
}

.legal-info-box li:last-child {
  margin-bottom: 0;
}

/* --- Legal Intro Paragraph --- */
.legal-intro {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--gray-700);
  margin-bottom: 16px;
}

/* --- Contact Final Block --- */
.legal-contact-final {
  background: var(--purple-bg);
  border-radius: var(--radius);
  padding: 32px;
  margin-top: 48px;
  text-align: center;
}

.legal-contact-final p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--gray-700);
  margin-bottom: 12px;
}

.legal-contact-final p:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .legal-info-box {
    padding: 20px;
  }

  .legal-contact-final {
    padding: 24px 20px;
  }
}


/* ============================================
   COOKIE CONSENT BANNER
   ============================================ */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--white);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.1);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid #e5e7eb;
}

.cookie-banner.hidden {
  display: none;
}

.cookie-banner p {
  font-size: 0.88rem;
  color: var(--gray-700);
  line-height: 1.6;
  margin: 0;
  flex: 1;
  font-family: var(--font);
}

.cookie-banner a {
  color: var(--purple);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.cookie-banner a:hover {
  text-decoration: underline;
  color: var(--purple-dark);
}

.cookie-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-btn-accept {
  background: var(--gradient-btn, linear-gradient(135deg, var(--purple), var(--purple-dark)));
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 10px 24px;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.cookie-btn-accept:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(154, 76, 255, 0.35);
}

.cookie-btn-reject {
  background: transparent;
  color: var(--gray-700);
  border: 1px solid var(--gray);
  border-radius: 50px;
  padding: 10px 24px;
  font-size: 0.88rem;
  font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.cookie-btn-reject:hover {
  border-color: var(--black);
  color: var(--black);
}


/* ============================================
   RESPONSIVE - TABLET & MOBILE
   ============================================ */

@media (max-width: 768px) {

  .legal-page {
    padding-top: 110px;
    padding-bottom: 60px;
  }

  .legal-page .container {
    padding: 0 18px;
  }

  .legal-page h1 {
    font-size: 1.8rem;
  }

  .legal-date {
    margin-bottom: 36px;
  }

  .legal-page h2 {
    font-size: 1.15rem;
    margin-top: 32px;
    padding-left: 14px;
  }

  .legal-page h3 {
    font-size: 1rem;
    margin-top: 24px;
  }

  .legal-page p,
  .legal-page ul,
  .legal-page ol {
    font-size: 0.9rem;
    line-height: 1.75;
  }

  .legal-page table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .legal-page th,
  .legal-page td {
    padding: 10px 12px;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .legal-contact {
    padding: 22px 20px;
  }

  /* Cookie Banner - Stacked */
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 18px 20px;
  }

  .cookie-banner p {
    font-size: 0.84rem;
    text-align: center;
  }

  .cookie-buttons {
    justify-content: center;
    gap: 10px;
  }

  .cookie-btn-accept,
  .cookie-btn-reject {
    padding: 10px 20px;
    font-size: 0.84rem;
    flex: 1;
    text-align: center;
  }
}
