/* ===== LEGAL PAGES (Privacy Policy & Terms of Service) ===== */

.legal-page {
  background: var(--bg);
  padding: clamp(3rem, 6vw, 6rem) 0;
  min-height: 100vh;
}

.legal-content {
  max-width: 900px;
  margin: 0 auto;
  background: var(--card);
  border-radius: 24px;
  padding: clamp(2rem, 4vw, 3.5rem);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-content h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.legal-content .lead {
  font-size: clamp(1.125rem, 2.2vw, 1.3rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: clamp(2rem, 4vw, 3rem);
  padding-bottom: clamp(1.5rem, 3vw, 2rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Legal sections */
.legal-section {
  margin-bottom: clamp(2rem, 4vw, 3rem);
  padding-bottom: clamp(1.5rem, 3vw, 2rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.legal-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.legal-section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
  position: relative;
  padding-left: 1rem;
}

.legal-section h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 4px;
  height: 1.2em;
  background: var(--gradient-primary);
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.4);
}

.legal-section h3 {
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.legal-section p {
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1rem;
}

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

/* Info boxes */
.info-box {
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 12px;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  margin: 1.25rem 0;
}

.info-box p {
  margin-bottom: 0.5rem;
  font-size: clamp(0.95rem, 1.9vw, 1.05rem);
}

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

.info-box strong {
  color: var(--brand2);
  font-weight: 600;
}

/* Legal lists */
.legal-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0;
}

.legal-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.875rem;
  font-size: clamp(1rem, 2vw, 1.1rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
}

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

.legal-list li i {
  color: var(--brand2);
  font-size: 1.1em;
  margin-top: 0.25em;
  flex-shrink: 0;
}

.legal-list li strong {
  color: var(--text);
  font-weight: 600;
}

/* Notice boxes */
.notice {
  background: rgba(251, 191, 36, 0.08);
  border-left: 3px solid var(--brand-warm);
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  border-radius: 0 8px 8px 0;
  font-size: clamp(0.95rem, 1.9vw, 1.05rem);
  color: rgba(255, 255, 255, 0.9);
}

.notice strong {
  color: var(--brand-warm-light);
  font-weight: 600;
}

/* Rights grid */
.rights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.right-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.right-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
}

.right-card i {
  font-size: 2.5rem;
  color: var(--brand2);
  margin-bottom: 1rem;
  display: block;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.right-card h3 {
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.right-card p {
  font-size: clamp(0.9rem, 1.8vw, 0.95rem);
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
}

/* Contact box */
.contact-box {
  background: var(--light);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: clamp(1.5rem, 3vw, 2rem);
  margin: 1.5rem 0;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
}

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

.contact-method i {
  font-size: 1.5rem;
  color: var(--brand2);
  flex-shrink: 0;
}

.contact-method div {
  flex: 1;
}

.contact-method strong {
  display: block;
  color: var(--text);
  font-size: clamp(0.9rem, 1.8vw, 0.95rem);
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.contact-method a {
  color: var(--brand2);
  text-decoration: none;
  font-size: clamp(1rem, 2vw, 1.1rem);
  transition: opacity 0.3s ease;
}

.contact-method a:hover {
  opacity: 0.8;
}

/* Steps grid (for Terms) */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.step-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.step-card:hover::before {
  opacity: 1;
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
}

.step-number {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.step-card h3 {
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.step-card p {
  font-size: clamp(0.9rem, 1.8vw, 0.95rem);
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
}

/* Warranty grid */
.warranty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.warranty-card {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.warranty-card:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.15);
}

.warranty-card i {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
  display: block;
}

.warranty-card h3 {
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.warranty-card p {
  font-size: clamp(0.9rem, 1.8vw, 0.95rem);
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
}

/* CTA box */
.cta-box {
  background: var(--light);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  margin: 1.5rem 0;
  text-align: center;
}

.cta-box h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.cta-box p {
  font-size: clamp(1rem, 2vw, 1.1rem);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-actions .btn {
  font-size: clamp(0.95rem, 1.9vw, 1rem);
  padding: 0.875rem 1.75rem;
  border-radius: 12px;
}

.cta-actions .btn-primary {
  background: var(--brand);
  color: #fff;
  border: none;
}

.cta-actions .btn-primary:hover {
  background: var(--brand2);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.cta-actions .btn-outline {
  background: transparent;
  color: var(--brand2);
  border: 2px solid var(--brand2);
}

.cta-actions .btn-outline:hover {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

/* Legal footer */
.legal-footer {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: clamp(1.5rem, 3vw, 2rem);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.legal-footer p {
  font-size: clamp(0.9rem, 1.8vw, 0.95rem);
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
  .legal-page {
    padding: clamp(2rem, 4vw, 3rem) 0;
  }

  .legal-content {
    padding: clamp(1.5rem, 3vw, 2rem);
    border-radius: 16px;
  }

  .rights-grid,
  .steps-grid,
  .warranty-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .cta-actions {
    flex-direction: column;
  }

  .cta-actions .btn {
    width: 100%;
  }

  .contact-method {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .legal-section h2 {
    font-size: clamp(1.3rem, 4vw, 1.6rem);
  }
}

/* Smooth scroll for anchor links */
html {
  scroll-behavior: smooth;
}

/* Link styling in legal content */
.legal-content a:not(.btn) {
  color: var(--brand2);
  text-decoration: underline;
  text-decoration-color: rgba(96, 165, 250, 0.3);
  text-underline-offset: 2px;
  transition: all 0.3s ease;
}

.legal-content a:not(.btn):hover {
  color: var(--brand);
  text-decoration-color: var(--brand);
}

/* Print styles */
@media print {
  .legal-page {
    background: white;
    padding: 0;
  }

  .legal-content {
    background: white;
    box-shadow: none;
    border: none;
    color: black;
  }

  .legal-content h1,
  .legal-content h2,
  .legal-content h3,
  .legal-content p,
  .legal-content li {
    color: black;
    -webkit-text-fill-color: black;
  }

  .info-box,
  .notice {
    border: 1px solid #ccc;
    background: #f5f5f5;
  }

  .btn {
    display: none;
  }
}

