/* =============================================================
   Legal page styles
   ============================================================= */

.legal-hero {
  padding: calc(var(--nav-h) + 80px) 0 60px;
  text-align: center;
  position: relative;
}

.legal-hero .eyebrow {
  margin-bottom: 20px;
}

.legal-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 32px;
  color: var(--text);
}

.legal-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}

.legal-tab {
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  border-radius: 100px;
  transition: all 0.25s var(--ease);
}
.legal-tab:hover { color: var(--primary); }
.legal-tab.is-active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(47, 110, 75, 0.3);
}
.legal-tab--danger:hover {
  color: #dc2626;
}
.legal-tab--danger.is-active {
  background: #dc2626;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.legal-meta {
  font-size: 14px;
  color: var(--text-2);
  margin: 0 0 16px;
}

.legal-lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-2);
  max-width: 720px;
  margin: 0 auto;
}

/* ---------- Main ---------- */
.legal-main {
  padding: 40px 0 120px;
}

.legal-section {
  max-width: 880px;
  margin: 0 auto 80px;
  padding: 0 24px;
}

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

.legal-section__head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 24px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.legal-section__num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
}
.legal-section__head h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--text);
}

.legal-section__lead {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-2);
  margin: 0 0 32px;
  padding: 20px 24px;
  background: var(--primary-light);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.legal-block {
  margin-bottom: 36px;
  scroll-margin-top: calc(var(--nav-h) + 24px);
}
.legal-block:last-child { margin-bottom: 0; }

.legal-block h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
  color: var(--text);
}

.legal-block p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-2);
  margin: 0;
}

.legal-block strong {
  color: var(--text);
  font-weight: 700;
}

.legal-block em {
  color: var(--text);
  font-style: italic;
}

.legal-block a {
  color: var(--primary);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.legal-block a:hover { color: var(--primary-dark); }

/* ---------- Delete account page ---------- */
.delete-page {
  margin-bottom: 0;
}

.delete-alert {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px 28px;
  margin-bottom: 40px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: var(--radius-md);
}
[data-theme="dark"] .delete-alert {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
}
.delete-alert__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.15);
  color: #dc2626;
}
.delete-alert__icon svg {
  width: 24px;
  height: 24px;
}
.delete-alert__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text);
}
.delete-alert__body {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-2);
  margin: 0;
}

.delete-steps {
  margin: 16px 0 20px;
  padding-left: 24px;
  color: var(--text-2);
}
.delete-steps li {
  margin-bottom: 10px;
  line-height: 1.65;
}
.delete-steps li:last-child {
  margin-bottom: 0;
}

.delete-items {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.delete-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 24px;
}
.delete-item + .delete-item {
  border-top: 1px solid var(--border);
}
.delete-item__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
}
.delete-item__icon svg {
  width: 20px;
  height: 20px;
}
.delete-item strong {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.delete-item p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-2);
  margin: 0;
}
.delete-item--red .delete-item__icon {
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
}
.delete-item--amber .delete-item__icon {
  background: rgba(245, 158, 11, 0.14);
  color: #d97706;
}
.delete-item--pink .delete-item__icon {
  background: rgba(236, 72, 153, 0.12);
  color: #db2777;
}
.delete-item--purple .delete-item__icon {
  background: rgba(139, 92, 246, 0.12);
  color: #7c3aed;
}

.delete-warning {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 22px;
  margin: 36px 0;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-md);
}
[data-theme="dark"] .delete-warning {
  background: rgba(245, 158, 11, 0.1);
}
.delete-warning svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: #d97706;
}
.delete-warning p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: #b45309;
  font-weight: 500;
}
[data-theme="dark"] .delete-warning p {
  color: #fbbf24;
}

.delete-visual {
  text-align: center;
}
.delete-visual h3,
.delete-visual > p {
  text-align: left;
}

.delete-phone-showcase {
  display: flex;
  justify-content: center;
  margin: 32px auto 0;
  padding: 24px 0 8px;
}
.delete-phone-showcase .phone {
  position: relative;
  width: 260px;
  height: 540px;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .legal-hero { padding-top: calc(var(--nav-h) + 48px); }
  .legal-tabs { flex-direction: column; gap: 0; border-radius: 16px; }
  .legal-tab { width: 100%; text-align: center; }
  .legal-section__head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .legal-section { padding: 0 16px; }
  .delete-alert { flex-direction: column; gap: 14px; padding: 20px; }
  .delete-item { padding: 16px 18px; }
  .delete-phone-showcase .phone { width: 220px; height: 460px; }
}
