/* ============================================================
   Legal Pages Theme (Homepage-aligned)
   Uses styles-v3.css tokens and shell components
   ============================================================ */

.legal-page-shell {
  background:
    radial-gradient(circle at 10% 8%, rgba(26, 127, 200, 0.12), transparent 34%),
    radial-gradient(circle at 90% 12%, rgba(59, 189, 198, 0.10), transparent 40%),
    var(--dark-bg);
  color: var(--off-white);
}

.legal-page-shell .seo-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.legal-page-shell .legal-breadcrumb-wrap {
  margin-top: 0.9rem;
}

.legal-page-shell .breadcrumbs {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  background: rgba(37, 46, 48, 0.68);
  border: 1px solid rgba(245, 245, 245, 0.08);
  border-radius: 999px;
  padding: 0.6rem 0.95rem;
  color: rgba(245, 245, 245, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.legal-page-shell .breadcrumbs a {
  color: var(--teal-primary);
  font-weight: 600;
}

.legal-page-shell .breadcrumbs a:hover,
.legal-page-shell .breadcrumbs a:focus-visible {
  color: var(--off-white);
}

.legal-page-shell .policy-page {
  width: min(100% - 2rem, 940px);
  margin-inline: auto;
  padding: clamp(1.2rem, 3vw, 2rem) 0 clamp(3rem, 6vw, 4.5rem);
}

.legal-page-shell .policy-header {
  text-align: center;
  margin-bottom: clamp(1.5rem, 4vw, 2.25rem);
  padding: clamp(1.2rem, 3vw, 1.8rem);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(26, 127, 200, 0.18);
  background: linear-gradient(135deg, rgba(37, 46, 48, 0.8), rgba(18, 22, 24, 0.9));
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
  position: relative;
  overflow: hidden;
}

.legal-page-shell .policy-header::before {
  content: "";
  position: absolute;
  width: 16rem;
  height: 16rem;
  border-radius: 50%;
  top: -9rem;
  right: -7rem;
  background: radial-gradient(circle, rgba(26, 127, 200, 0.16), transparent 70%);
  pointer-events: none;
}

.legal-page-shell .policy-header::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(220px, 70%);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(26, 127, 200, 0.65), transparent);
}

.legal-page-shell .policy-title {
  margin: 0 0 0.75rem;
  font-family: 'Exo 2', sans-serif;
  font-size: clamp(2rem, 5vw, 2.8rem);
  line-height: 1.1;
  color: var(--off-white);
  position: relative;
  z-index: 1;
}

.legal-page-shell .last-updated {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(26, 127, 200, 0.10);
  border: 1px solid rgba(26, 127, 200, 0.18);
  color: rgba(245, 245, 245, 0.88);
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.legal-page-shell .effective-notice,
.legal-page-shell .highlight-box,
.legal-page-shell .warning-box,
.legal-page-shell .contact-info,
.legal-page-shell .third-party-service {
  border-radius: var(--radius-md);
}

.legal-page-shell .effective-notice {
  background: rgba(26, 127, 200, 0.10);
  border: 1px solid rgba(26, 127, 200, 0.2);
  padding: clamp(1rem, 3vw, 1.25rem);
  margin-bottom: clamp(1.2rem, 3vw, 1.6rem);
}

.legal-page-shell .effective-notice h3 {
  color: var(--off-white);
  font-family: 'Exo 2', sans-serif;
  font-size: 1.05rem;
  margin: 0 0 0.45rem;
}

.legal-page-shell .effective-notice p {
  margin: 0;
  color: rgba(245, 245, 245, 0.88);
}

.legal-page-shell .policy-section {
  margin-bottom: 1rem;
  background: linear-gradient(180deg, rgba(37, 46, 48, 0.86), rgba(28, 31, 34, 0.94));
  border: 1px solid rgba(245, 245, 245, 0.08);
  border-radius: var(--radius-md);
  padding: clamp(1rem, 2.6vw, 1.5rem);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
}

.legal-page-shell .policy-section:hover {
  border-color: rgba(26, 127, 200, 0.24);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.28), 0 0 18px rgba(26, 127, 200, 0.10);
}

.legal-page-shell .policy-page .section-title {
  margin: 0 0 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--off-white);
  font-family: 'Exo 2', sans-serif;
  font-size: clamp(1.15rem, 2.6vw, 1.4rem);
  line-height: 1.25;
}

.legal-page-shell .section-number {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(26, 127, 200, 0.18);
  border: 1px solid rgba(26, 127, 200, 0.32);
  color: var(--off-white);
  font-weight: 700;
  font-size: 0.8rem;
}

.legal-page-shell .section-content p,
.legal-page-shell .section-content li,
.legal-page-shell .policy-page table,
.legal-page-shell .policy-page td,
.legal-page-shell .policy-page th {
  color: rgba(245, 245, 245, 0.88);
}

.legal-page-shell .section-content p {
  margin: 0 0 0.9rem;
}

.legal-page-shell .section-content p:last-child {
  margin-bottom: 0;
}

.legal-page-shell .section-content a,
.legal-page-shell .policy-page a.contact-link,
.legal-page-shell .policy-page a[href^="mailto:"] {
  color: var(--teal-primary);
  text-decoration: none;
}

.legal-page-shell .section-content a:hover,
.legal-page-shell .policy-page a.contact-link:hover,
.legal-page-shell .section-content a:focus-visible {
  color: var(--off-white);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.legal-page-shell .policy-list {
  list-style: none;
  margin: 0.8rem 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.legal-page-shell .policy-list li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.5rem;
  border-bottom: 1px solid rgba(245, 245, 245, 0.06);
}

.legal-page-shell .policy-list li:last-child {
  border-bottom: 0;
}

.legal-page-shell .policy-list li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 1rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-primary), var(--teal-accent));
  box-shadow: 0 0 8px rgba(59, 189, 198, 0.3);
}

.legal-page-shell .highlight-box,
.legal-page-shell .warning-box {
  margin: 1rem 0;
  padding: 0.9rem 1rem;
  border-left: 3px solid rgba(26, 127, 200, 0.5);
  background: rgba(26, 127, 200, 0.08);
}

.legal-page-shell .warning-box {
  border-left-color: rgba(255, 107, 107, 0.75);
  background: rgba(255, 107, 107, 0.08);
}

.legal-page-shell .highlight-box p,
.legal-page-shell .warning-box p {
  margin: 0;
}

.legal-page-shell .contact-info {
  margin-top: 0.8rem;
  padding: 1rem;
  text-align: center;
  border: 1px solid rgba(26, 127, 200, 0.18);
  background: rgba(18, 22, 24, 0.6);
}

.legal-page-shell .contact-info h3 {
  margin: 0 0 0.6rem;
  font-family: 'Exo 2', sans-serif;
  color: var(--off-white);
  font-size: 1.05rem;
}

.legal-page-shell .contact-link {
  font-weight: 700;
  font-size: 1rem;
}

.legal-page-shell .third-party-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.7rem;
  margin: 0.9rem 0;
}

.legal-page-shell .third-party-service {
  padding: 0.8rem;
  border: 1px solid rgba(245, 245, 245, 0.08);
  background: rgba(18, 22, 24, 0.6);
  text-align: center;
}

.legal-page-shell .third-party-service strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--off-white);
}

.legal-page-shell .third-party-service span {
  color: rgba(245, 245, 245, 0.72);
  font-size: 0.9rem;
}

.legal-page-shell .cookie-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 0.8rem 0;
  border: 1px solid rgba(245, 245, 245, 0.08);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(18, 22, 24, 0.55);
}

.legal-page-shell .cookie-table th,
.legal-page-shell .cookie-table td {
  padding: 0.8rem;
  border-bottom: 1px solid rgba(245, 245, 245, 0.06);
  text-align: left;
  vertical-align: top;
}

.legal-page-shell .cookie-table th {
  color: var(--off-white);
  background: rgba(26, 127, 200, 0.10);
  font-weight: 700;
}

.legal-page-shell .cookie-table tr:last-child td {
  border-bottom: 0;
}

.legal-page-shell .site-footer {
  margin-top: 0;
}

@media (max-width: 768px) {
  .legal-page-shell .policy-page {
    width: min(100% - 1rem, 940px);
    padding-top: 1rem;
  }

  .legal-page-shell .policy-page .section-title {
    align-items: flex-start;
    gap: 0.55rem;
  }

  .legal-page-shell .cookie-table {
    font-size: 0.9rem;
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

@media (max-width: 560px) {
  .legal-page-shell .legal-breadcrumb-wrap {
    margin-top: 0.65rem;
  }

  .legal-page-shell .breadcrumbs {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .legal-page-shell .policy-page .section-title {
    flex-direction: column;
    align-items: flex-start;
  }

  .legal-page-shell .third-party-grid {
    grid-template-columns: 1fr;
  }
}
