/* ============================================================
   ADHDaily — Legal Pages Styles (Privacy Policy & Terms of Service)
   Matches main design system: glassmorphism, dark-first, futuristic
   ============================================================ */

/* ===================== LEGAL PAGE LAYOUT ===================== */
.legal {
  position: relative;
  min-height: 100vh;
  padding-top: calc(var(--nav-h) + 60px);
  padding-bottom: clamp(60px, 8vw, 120px);
  overflow: hidden;
}

.legal__orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.legal__orbs .orb--1 {
  top: -100px;
  left: -80px;
  width: 500px;
  height: 500px;
}
.legal__orbs .orb--2 {
  top: 300px;
  right: -120px;
  width: 400px;
  height: 400px;
}

/* ===================== HEADER ===================== */
.legal__header {
  text-align: center;
  margin-bottom: clamp(40px, 6vw, 72px);
  position: relative;
  z-index: 1;
}

.legal__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--text-primary);
  margin-top: 16px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--text-primary) 60%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.legal__meta {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  letter-spacing: 0.02em;
}

/* ===================== BODY CONTENT ===================== */
.legal__body {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: clamp(28px, 5vw, 64px);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Top glow line */
.legal__body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(52,138,132,0.4), rgba(255,255,255,0.08), transparent);
  pointer-events: none;
}

/* ===================== SECTIONS ===================== */
.legal__section {
  margin-bottom: clamp(32px, 4vw, 48px);
  padding-bottom: clamp(32px, 4vw, 48px);
  border-bottom: 1px solid var(--surface-border);
}
.legal__section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.legal__section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.625rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 16px;
  position: relative;
  padding-left: 20px;
}

/* Accent bar before h2 */
.legal__section h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 4px;
  height: calc(100% - 8px);
  background: linear-gradient(180deg, var(--accent), var(--accent-light));
  border-radius: 2px;
}

.legal__section h3 {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.125rem);
  font-weight: 600;
  color: var(--accent-light);
  margin-top: 24px;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.legal__section p {
  font-size: clamp(0.9rem, 1.8vw, 0.9625rem);
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 14px;
}
.legal__section p:last-child {
  margin-bottom: 0;
}

.legal__section a {
  color: var(--accent-light);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--t-fast);
}
.legal__section a:hover {
  color: var(--accent);
}

/* ===================== LISTS ===================== */
.legal__section ul {
  list-style: none;
  padding: 0;
  margin: 12px 0 16px;
}

.legal__section ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  font-size: clamp(0.875rem, 1.8vw, 0.9375rem);
  color: var(--text-secondary);
  line-height: 1.75;
}

.legal__section ul li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px rgba(52,138,132,0.4);
}

.legal__section ul li strong {
  color: var(--text-primary);
}

/* ===================== INFO BOX ===================== */
.legal__info-box {
  background: rgba(52,138,132,0.06);
  border: 1px solid rgba(52,138,132,0.18);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 16px 0;
}

.legal__info-box p {
  margin-bottom: 0;
  font-size: 0.9rem;
  line-height: 1.7;
}

.legal__info-box a {
  color: var(--accent-light);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
  .legal {
    padding-top: calc(var(--nav-h) + 40px);
  }
}

@media (max-width: 640px) {
  .legal__body {
    padding: 24px 18px;
    border-radius: var(--radius-lg);
  }

  .legal__section h2 {
    font-size: 1.15rem;
    padding-left: 16px;
  }

  .legal__info-box {
    padding: 16px 18px;
  }
}

@media (max-width: 420px) {
  .legal__body {
    padding: 20px 14px;
  }

  .legal__title {
    font-size: 1.75rem;
  }
}
