/* Legal pages — light theme, extends styles.css */

.legal-main {
  padding: clamp(2.5rem, 8vw, 4rem) 0 clamp(3rem, 10vw, 5rem);
  background: var(--bg);
}

.legal-doc {
  max-width: 48rem;
  margin: 0 auto;
}

.legal-doc-header {
  text-align: center;
  margin-bottom: clamp(2rem, 5vw, 3rem);
  padding-bottom: clamp(1.5rem, 4vw, 2rem);
  border-bottom: 1px solid var(--border);
}

.legal-doc-title {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  color: var(--heading);
}

.legal-doc-meta {
  font-size: clamp(0.85rem, 2vw, 0.95rem);
  color: var(--text-muted);
}

.legal-doc-intro {
  font-size: clamp(0.95rem, 2.2vw, 1.05rem);
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.legal-section {
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}

.legal-section h2 {
  font-size: clamp(1.1rem, 3vw, 1.35rem);
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 0.85rem;
  padding-left: 0.85rem;
  border-left: 3px solid var(--orange, #ff8c00);
}

.legal-section p {
  font-size: clamp(0.875rem, 2vw, 0.95rem);
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 0.85rem;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section ul,
.legal-section ol {
  margin: 0 0 0.85rem 1.25rem;
  padding: 0;
}

.legal-section li {
  font-size: clamp(0.875rem, 2vw, 0.95rem);
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.legal-section a {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.legal-section a:hover {
  color: var(--pink);
}

.legal-provider-list {
  list-style: none;
  margin-left: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.legal-provider-list li::before {
  content: "›";
  color: var(--orange);
  margin-right: 0.5rem;
}

.nav-link.is-active {
  color: var(--heading);
  font-weight: 600;
}

.legal-cta {
  margin-top: clamp(2.5rem, 6vw, 3.5rem);
  padding: clamp(1.5rem, 4vw, 2rem);
  text-align: center;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.legal-cta p {
  font-size: clamp(0.95rem, 2.2vw, 1.05rem);
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

.legal-cta a {
  color: var(--orange);
  font-weight: 600;
}

.legal-cta a:hover {
  color: var(--pink);
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s ease, gap 0.2s ease;
}

.legal-back:hover {
  color: var(--heading);
  gap: 0.55rem;
}

.legal-back svg {
  width: 16px;
  height: 16px;
}

/* Page enter (legal + contact) */
.legal-enter-item {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity var(--reveal-duration) var(--ease),
    transform var(--reveal-duration) var(--ease);
}

body.is-ready .legal-enter-item {
  opacity: 1;
  transform: none;
}

.legal-enter-item--d1 {
  transition-delay: 0.12s;
}

.legal-enter-item--d2 {
  transition-delay: 0.24s;
}

/* Contact page */
.contact-hero {
  text-align: center;
  margin-bottom: clamp(2rem, 5vw, 3rem);
  padding-bottom: clamp(1.5rem, 4vw, 2rem);
  border-bottom: 1px solid var(--border);
}

.contact-hero-title {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  color: var(--heading);
}

.contact-hero-desc {
  font-size: clamp(0.95rem, 2.2vw, 1.05rem);
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 36rem;
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  gap: clamp(1rem, 3vw, 1.25rem);
  margin-bottom: clamp(2rem, 5vw, 2.5rem);
}

@media (min-width: 640px) {
  .contact-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.contact-card {
  padding: clamp(1.25rem, 3vw, 1.5rem);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
}

.contact-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 0.85rem;
  border-radius: var(--radius-md);
  background: rgba(255, 140, 0, 0.12);
  color: var(--orange);
}

.contact-card-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.contact-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 0.5rem;
}

.contact-card-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

.contact-card-text a {
  color: var(--orange);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-card-text a:hover {
  color: var(--pink);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}
