/* Legal & account pages (terms, privacy, safety, account-deletion).
   Built on the tokens from css/style.css (:root vars). */
:root {
  --grad: linear-gradient(120deg, var(--brand), var(--brand-2));
  --pink: var(--brand);
  --text: var(--ink);
  --text-muted: var(--muted);
  --glass: var(--surface);
  --glass-border: var(--line);
  --radius-sm: 14px;
}
/* nav: fit 6 links + CTA, and wrap gracefully on small screens (style.css hides overflow on mobile) */
.nav.legal-nav { width: min(880px, calc(100% - 28px)); justify-content: center; flex-wrap: wrap; overflow: visible; gap: 2px; padding-bottom: 8px; }
.nav.legal-nav a { padding: 10px 11px; }
@media (max-width: 720px) { .nav.legal-nav { width: min(880px, calc(100% - 28px)); justify-content: center; overflow: visible; } }
.nav a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }

.page-hero, .page-banner { text-align: center; padding: 56px 0 40px; position: relative; }
.page-hero::after, .page-banner::after {
  content: ""; display: block; width: 80px; height: 3px; margin: 32px auto 0;
  background: var(--grad); border-radius: 3px;
}
.container { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.section-label {
  display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--brand); margin-bottom: 14px;
}
.page-hero h1, .page-banner h1 {
  max-width: none; margin: 0 auto; letter-spacing: -.02em; text-wrap: balance;
  font-family: "Baloo 2", "Manrope", sans-serif; font-weight: 800; line-height: 1.1;
  font-size: clamp(2.3rem, 6vw, 3.6rem);
}
.page-hero h1 span, .page-banner h1 span {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.page-hero p, .page-banner p { color: var(--muted); margin: 14px auto 0; max-width: 640px; font-size: 1.05rem; }

.legal-content { width: min(820px, calc(100% - 40px)); margin: 0 auto 80px; }
.last-updated {
  display: inline-block; font-size: .82rem; font-weight: 700; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; margin-bottom: 22px;
}
.legal-content h2 {
  font-family: "Baloo 2", "Manrope", sans-serif; font-size: 1.6rem; margin: 44px 0 12px;
  padding-bottom: 10px; border-bottom: 1px solid var(--line); line-height: 1.15; letter-spacing: -.01em;
}
.legal-content h3 { font-size: 1.05rem; margin: 26px 0 8px; line-height: 1.3; letter-spacing: 0; }
.legal-content h4 { font-size: .95rem; margin: 20px 0 6px; color: var(--muted); }
.legal-content p, .legal-content li { color: var(--muted); line-height: 1.75; font-size: .96rem; }
.legal-content strong { color: var(--ink); }
.legal-content ul { padding-left: 1.2rem; }
.legal-content li { margin: 6px 0; }
.legal-content li::marker { color: var(--brand); }
.legal-content a, .info-card a, .support-block a { color: var(--brand); text-underline-offset: 3px; }
.legal-highlight {
  background: rgba(229,45,110,.08); border: 1px solid rgba(229,45,110,.28);
  border-radius: var(--radius-sm); padding: 18px 22px; margin: 22px 0;
  color: var(--muted); line-height: 1.7;
}
.legal-highlight strong { color: var(--ink); }

.safety-badges { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 48px; }
.safety-badge {
  display: inline-block; padding: 8px 16px; border-radius: 999px; font-size: .85rem; font-weight: 700;
  border: 1px solid var(--line);
}
.badge-safe { background: rgba(34,197,94,.10); border-color: rgba(34,197,94,.35); color: #7ee2a2; }
.badge-danger { background: rgba(239,68,68,.10); border-color: rgba(239,68,68,.35); color: #ff9a9a; }
.badge-warning { background: rgba(251,191,36,.10); border-color: rgba(251,191,36,.35); color: #fcd577; }

/* ── Account deletion ── */
.deletion-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; padding: 20px 0 80px; align-items: start; }
@media (max-width: 900px) { .deletion-layout { grid-template-columns: 1fr; } }
.info-card, .flow-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px;
}
.flow-card { position: sticky; top: 24px; }
@media (max-width: 900px) { .flow-card { position: static; } }
.info-card h2 {
  font-family: "Baloo 2", "Manrope", sans-serif; font-size: 1.5rem; margin: 0 0 16px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.info-card h3 { font-size: 1rem; margin: 24px 0 8px; line-height: 1.3; letter-spacing: 0; }
.info-card p { font-size: .92rem; color: var(--muted); line-height: 1.75; margin: 0 0 8px; }
.info-card ul { list-style: none; padding: 0; margin: 8px 0 0; }
.info-card ul li { font-size: .9rem; color: var(--muted); padding: 6px 0 6px 20px; position: relative; line-height: 1.6; border-bottom: 1px solid rgba(255,255,255,.05); }
.info-card ul li:last-child { border-bottom: 0; }
.info-card ul li::before { content: "›"; position: absolute; left: 0; color: var(--brand); font-weight: 800; }
.info-card strong { color: var(--ink); }
.support-block { margin-top: 24px; padding: 18px 22px; background: rgba(229,45,110,.08); border: 1px solid rgba(229,45,110,.22); border-radius: var(--radius-sm); }
.support-block p { font-size: .88rem; line-height: 1.8; }
.flow-card h2 { font-family: "Baloo 2", "Manrope", sans-serif; font-size: 1.5rem; margin: 0 0 8px; }
.flow-card > p { font-size: .92rem; color: var(--muted); margin: 0 0 26px; }
.del-step { animation: stepIn .35s ease; }
.del-step.hidden { display: none; }
@keyframes stepIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.step-label { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.step-num { width: 28px; height: 28px; border-radius: 50%; background: var(--grad); display: flex; align-items: center; justify-content: center; font-size: .78rem; font-weight: 800; color: #fff; flex-shrink: 0; }
.del-step h3 { font-size: 1rem; margin: 0; line-height: 1.3; letter-spacing: 0; }
.del-step p { font-size: .88rem; color: var(--muted); margin: 0 0 16px; }
.flow-input {
  width: 100%; padding: 14px 18px; background: rgba(255,255,255,.06); border: 1px solid var(--line);
  border-radius: var(--radius-sm); color: var(--ink); font: inherit; font-size: .95rem; margin-bottom: 14px; outline: none;
  transition: border-color .25s, box-shadow .25s;
}
.flow-input::placeholder { color: var(--muted); opacity: .8; }
.flow-input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(229,45,110,.18); }
.btn-flow { width: 100%; padding: 14px; border-radius: 999px; font: inherit; font-weight: 800; font-size: .95rem; cursor: pointer; border: 0; color: #fff; transition: transform .2s, box-shadow .2s; }
.btn-flow-primary { background: var(--grad); box-shadow: 0 8px 28px rgba(229,45,110,.32); }
.btn-flow-danger { background: linear-gradient(135deg, #c0392b, #e74c3c); box-shadow: 0 8px 28px rgba(231,57,43,.28); }
.btn-flow:hover:not(:disabled) { transform: translateY(-2px); }
.btn-flow:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.btn-flow:disabled { opacity: .6; cursor: not-allowed; }
.warning-box { background: rgba(231,43,43,.12); border: 1px solid rgba(231,43,43,.35); border-radius: var(--radius-sm); padding: 14px 18px; font-size: .88rem; color: #ff9a9a; margin-bottom: 16px; line-height: 1.6; }
.msg-area { margin-top: 16px; padding: 12px 16px; border-radius: var(--radius-sm); font-size: .88rem; display: none; line-height: 1.6; }
.msg-area.error { display: block; background: rgba(231,43,43,.12); border: 1px solid rgba(231,43,43,.3); color: #ff9a9a; }
.msg-area.success { display: block; background: rgba(46,213,115,.1); border: 1px solid rgba(46,213,115,.3); color: #2ed573; }
.msg-area.info { display: block; background: rgba(139,81,168,.14); border: 1px solid rgba(139,81,168,.35); color: #d2a9e8; }
.success-icon { text-align: center; margin-bottom: 18px; }
.success-icon svg { width: 64px; height: 64px; }
#successStep h3 { text-align: center; font-size: 1.3rem; margin-bottom: 14px; }
#successStep .msg-area { text-align: center; }

/* ── Footer additions (shared by all pages using .site-footer) ── */
.site-footer nav { flex-wrap: wrap; row-gap: 8px; }
.site-footer .footer-legal a[aria-current="page"] { color: #fff; }
@media (max-width: 640px) { .site-footer nav { justify-content: center; } }
