/* ==========================================================
   Legal pages (privacy, cookies, account deletion)
   Loaded after styles.css
   ========================================================== */
.nav--legal { background: rgba(11,7,16,.72); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); }
.nav--legal .nav__links a.is-current { opacity: 1; color: var(--rose); }
.back { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; padding: 10px 16px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); transition: background .3s, box-shadow .3s; }
.back:hover { background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.5); }

.lhero { position: relative; overflow: hidden; padding: clamp(140px, 16vw, 200px) var(--pad) clamp(56px, 7vw, 90px); background: radial-gradient(90% 90% at 85% 0%, #5a0b33 0%, #24091f 45%, var(--ink) 80%); }
.lhero::after { content: ""; position: absolute; right: -120px; top: -160px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, var(--rose), var(--magenta) 35%, var(--violet) 70%, transparent 72%); opacity: .55; animation: float 9s ease-in-out infinite alternate; pointer-events: none; }
@keyframes float { to { transform: translate(-40px, 50px) scale(1.06); } }
.lhero__in { position: relative; z-index: 1; max-width: 1100px; margin: 0 auto; }
.lhero h1 { font-size: clamp(44px, 7.4vw, 108px); line-height: .95; letter-spacing: -.05em; font-weight: 600; margin: 0; max-width: 14ch; }
.lhero h1 em { color: var(--rose); }
.lhero p { margin: 26px 0 0; max-width: 60ch; color: rgba(255,255,255,.75); font-size: clamp(16px, 1.5vw, 20px); }
.lhero .meta { margin-top: 28px; color: rgba(255,255,255,.5); }
.lhero .reveal { opacity: 0; transform: translateY(30px); animation: rise 1s var(--ease) forwards; }
.lhero .reveal:nth-child(2) { animation-delay: .1s; } .lhero .reveal:nth-child(3) { animation-delay: .2s; } .lhero .reveal:nth-child(4) { animation-delay: .3s; }
@keyframes rise { to { opacity: 1; transform: none; } }

.legal { background: var(--paper); color: var(--indigo); padding: clamp(56px, 8vw, 110px) var(--pad) clamp(80px, 10vw, 140px); }
.legal__wrap { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 230px 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.toc { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 2px; border-left: 1px solid rgba(35,29,74,.15); }
.toc a { padding: 7px 0 7px 16px; margin-left: -1px; border-left: 2px solid transparent; font-size: 14px; color: var(--muted); transition: color .3s, border-color .3s; }
.toc a:hover, .toc a.is-active { color: var(--indigo); border-color: var(--magenta); }
.legal article { max-width: 72ch; min-width: 0; }
.legal .intro { font-size: 19px; color: var(--indigo); margin-top: 0; }
.legal h2 { font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -.03em; line-height: 1.15; margin: 56px 0 14px; scroll-margin-top: 110px; font-weight: 600; }
.legal h2 span { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--magenta); margin-right: 10px; }
.legal h3 { font-size: 19px; margin: 26px 0 8px; letter-spacing: -.015em; }
.legal p, .legal li { color: #4c466a; }
.legal ul { padding-left: 20px; }
.legal li { margin: 6px 0; }
.legal article a:not(.btn) { color: var(--magenta); text-decoration: underline; text-underline-offset: 3px; }
.pill-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 18px 0; }
.pill-grid > div { background: #fff; border-radius: 16px; padding: 18px; box-shadow: 0 14px 30px -26px rgba(35,29,74,.5); }
.pill-grid b { display: block; margin-bottom: 6px; color: var(--indigo); }
.pill-grid p { margin: 0 0 6px; font-size: 15px; }
.pill-grid small { color: var(--muted); font-size: 13px; }
.tag-on, .tag-off { font-family: var(--f-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; margin-left: 6px; vertical-align: middle; white-space: nowrap; }
.tag-on { background: #e3f8ea; color: #157a3c; } .tag-off { background: var(--paper-2); color: var(--muted); }
.callout { margin: 56px 0 0; padding: clamp(24px, 3vw, 36px); border-radius: var(--radius); background: linear-gradient(140deg, var(--indigo), #3a1550 60%, var(--crimson)); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.legal .callout h3 { margin: 0 0 6px; font-size: 24px; color: #fff; }
.legal .callout p { margin: 0; color: rgba(255,255,255,.75); max-width: 46ch; }

.mini-footer { background: var(--ink); padding: 56px var(--pad) 28px; }
.mini-footer .footer__cols { margin-top: 0; border-top: 0; padding-top: 0; }
.mini-footer .footer__copy { margin-top: 40px; }

@media (max-width: 860px) {
  .legal__wrap { grid-template-columns: 1fr; }
  .toc { display: none; }
  .nav--legal .nav__links { display: none; }
}

/* ---------- Account deletion ---------- */
.del { background: var(--ink); padding: 0 var(--pad) clamp(80px, 10vw, 140px); }
.del__wrap { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.del__card { background: rgba(255,255,255,.04); border-radius: calc(var(--radius) + 6px); padding: clamp(22px, 3.4vw, 44px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.del__card h2 { margin: 0 0 26px; font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -.03em; font-weight: 600; }
.dform { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; }
.dfield { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.dfield--full { grid-column: 1 / -1; }
.dfield > label { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-weight: 600; font-size: 15px; }
.dfield > label small { font-weight: 400; color: rgba(255,255,255,.45); font-size: 12.5px; }
.dfield .hint { font-size: 13px; color: rgba(255,255,255,.5); }
.dinput { position: relative; }
.dinput svg { position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); stroke: rgba(255,255,255,.55); fill: none; stroke-width: 1.8; pointer-events: none; }
.dform input, .dform select, .dform textarea {
  width: 100%; min-height: 54px; padding: 14px 16px; border: 0; border-radius: 14px; outline: 0;
  background-color: rgba(255,255,255,.06); color: #fff; font: inherit; font-size: 16px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); transition: box-shadow .3s, background-color .3s;
}
.dinput input { padding-left: 46px; }
.dform textarea { min-height: 130px; resize: vertical; }
.dform input::placeholder, .dform textarea::placeholder { color: rgba(255,255,255,.4); }
.dform input:focus, .dform select:focus, .dform textarea:focus { box-shadow: inset 0 0 0 1.5px var(--magenta); background-color: rgba(255,255,255,.08); }
.dform select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffffaa' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 18px;
}
.dform select:invalid { color: rgba(255,255,255,.55); }
.dform select option { color: #111; background: #fff; }
.dform .is-invalid input, .dform .is-invalid select, .dform .is-invalid textarea { box-shadow: inset 0 0 0 1.5px #ff6b6b; }
.check { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: rgba(255,255,255,.75); cursor: pointer; }
.dform .check input { appearance: none; -webkit-appearance: none; flex: 0 0 22px; width: 22px; height: 22px; min-height: 0; padding: 0; border-radius: 7px; margin-top: 1px; display: grid; place-items: center; cursor: pointer; }
.dform .check input:checked { background-color: var(--magenta); box-shadow: inset 0 0 0 1.5px var(--magenta); }
.dform .check input:checked::after { content: "✓"; color: #fff; font-size: 14px; font-weight: 700; }
.check.is-invalid input { box-shadow: inset 0 0 0 1.5px #ff6b6b !important; }
.dform__actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; margin-top: 4px; }
.dform__actions .btn { justify-content: center; min-height: 58px; }
.btn--grad { --fg: #fff; background: linear-gradient(110deg, #ff1f84, var(--magenta) 50%, #ff4f8b); box-shadow: 0 20px 40px -18px rgba(255,45,135,.7); text-transform: uppercase; letter-spacing: .04em; }
.btn--grad::before { background: linear-gradient(110deg, var(--violet), var(--magenta)); }
.btn--wa { --bg: transparent; --fg: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }
.btn--wa::before { background: #1fa855; }
.btn svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.dform__error { grid-column: 1 / -1; color: #ff8b8b; font-size: 14px; margin: 0; min-height: 1em; }
.dform__note { grid-column: 1 / -1; font-size: 13.5px; color: rgba(255,255,255,.5); text-align: center; margin: 0; }
.del__side { display: flex; flex-direction: column; gap: 14px; }
.side-card { border-radius: var(--radius); padding: 24px; background: rgba(255,255,255,.03); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.side-card h3 { margin: 0 0 12px; font-size: 18px; letter-spacing: -.02em; }
.side-card ol, .side-card ul { margin: 0; padding-left: 20px; color: rgba(255,255,255,.72); font-size: 15px; }
.side-card li { margin: 7px 0; }
.side-card p { margin: 0; color: rgba(255,255,255,.72); font-size: 15px; }
.side-card a { color: var(--rose); }
.app-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.app-chips span { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: rgba(255,255,255,.06); font-size: 13.5px; }
.app-chips img { width: 24px; height: 24px; border-radius: 7px; }

.done { display: none; text-align: center; padding: 12px 0 0; }
.done.is-on { display: block; animation: rise .8s var(--ease); }
.done__icon { width: 74px; height: 74px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center; font-size: 32px; color: #fff; background: linear-gradient(135deg, var(--magenta), var(--violet)); box-shadow: 0 20px 40px -16px rgba(255,45,135,.7); }
.done p { color: rgba(255,255,255,.72); max-width: 48ch; margin: 0 auto 8px; }
.done code { font-family: var(--f-mono); font-size: 14px; color: var(--rose); background: rgba(255,45,135,.12); padding: 4px 10px; border-radius: 8px; }
.done__links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 24px 0 14px; }
.done pre { text-align: left; white-space: pre-wrap; word-break: break-word; font-family: var(--f-mono); font-size: 12.5px; color: rgba(255,255,255,.7); background: rgba(0,0,0,.3); border-radius: 14px; padding: 16px; margin: 18px 0 0; }
.linkbtn { color: rgba(255,255,255,.6); text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }
.is-sent .dform { display: none; }

@media (max-width: 1000px) { .del__wrap { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .dform { grid-template-columns: 1fr; } .dform__actions { grid-template-columns: 1fr; } }

/* ---------- App picker (tiles) ---------- */
.dlabel { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-weight: 600; font-size: 15px; }
.dlabel small { font-weight: 400; color: rgba(255,255,255,.45); font-size: 12.5px; }
.apppick__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.apptile {
  --c: var(--magenta);
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 18px 10px 14px; border-radius: 18px; cursor: pointer; text-align: center;
  background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s;
  isolation: isolate; overflow: hidden;
}
.apptile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--c) 40%, transparent), transparent 70%); opacity: 0; transition: opacity .35s; }
.apptile:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); }
.apptile:hover::before { opacity: .55; }
.apptile input { position: absolute; opacity: 0; pointer-events: none; }
.apptile img { width: 52px; height: 52px; border-radius: 23%; box-shadow: 0 10px 22px -10px color-mix(in srgb, var(--c) 90%, #000); transition: transform .45s var(--ease); }
.apptile__name { font-size: 13.5px; font-weight: 600; line-height: 1.2; }
.apptile__check { position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--c); transform: scale(0); transition: transform .35s var(--ease); }
.apptile__check svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.apptile:has(input:checked) { background: color-mix(in srgb, var(--c) 16%, rgba(255,255,255,.04)); box-shadow: inset 0 0 0 2px var(--c), 0 16px 34px -18px var(--c); }
.apptile:has(input:checked)::before { opacity: 1; }
.apptile:has(input:checked) img { transform: scale(1.08) rotate(-4deg); }
.apptile:has(input:checked) .apptile__check { transform: scale(1); }
.apptile:has(input:focus-visible) { outline: 2px solid var(--magenta); outline-offset: 3px; }
.apppick.is-invalid .apptile { box-shadow: inset 0 0 0 1px rgba(255,107,107,.7); }
@media (max-width: 560px) { .apppick__grid { grid-template-columns: repeat(3, 1fr); gap: 8px; } .apptile { padding: 14px 6px 12px; } .apptile img { width: 46px; height: 46px; } .apptile__name { font-size: 12.5px; } }

/* ---------- Done / send step ---------- */
.done { --c: var(--magenta); text-align: left; padding: 0; }
.done__head { display: flex; align-items: center; gap: 18px; padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid rgba(255,255,255,.1); }
.done__app { position: relative; flex: none; }
.done__app img { width: 64px; height: 64px; border-radius: 23%; display: block; box-shadow: 0 14px 30px -12px var(--c); }
.done__badge { position: absolute; right: -6px; bottom: -6px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--magenta), var(--violet)); box-shadow: 0 0 0 3px #15101b; }
.done__head h2 { margin: 0 0 6px !important; font-size: clamp(20px, 2.2vw, 26px) !important; }
.done__meta { margin: 0; color: rgba(255,255,255,.6); font-size: 14px; }
.done code { font-family: var(--f-mono); font-size: 12.5px; color: var(--rose); background: rgba(255,45,135,.12); padding: 3px 8px; border-radius: 7px; }
.done__label { margin: 0 0 12px; font-weight: 600; font-size: 15px; color: #fff; }
.mailpick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mailopt { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); transition: transform .3s var(--ease), box-shadow .3s, background .3s; }
.mailopt:hover { transform: translateY(-2px); background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.mailopt__ico { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 17px; color: #fff; background: rgba(255,255,255,.1); }
.mailopt__ico svg { width: 22px; height: 22px; fill: currentColor; }
.mailopt__ico--gmail { background: #ea4335; }
.mailopt__ico--outlook { background: #0f6cbd; font-family: var(--f-sans); }
.mailopt__ico--yahoo { background: #6001d2; font-size: 15px; }
.mailopt__txt { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.mailopt__txt b { font-size: 15px; }
.mailopt__txt small { font-size: 12.5px; color: rgba(255,255,255,.5); }
.done__or { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: rgba(255,255,255,.4); font-size: 13px; }
.done__or::before, .done__or::after { content: ""; flex: 1; height: 1px; background: rgba(255,255,255,.1); }
.btn--wa-solid { width: 100%; justify-content: center; min-height: 56px; --bg: #1fa855; --fg: #fff; box-shadow: none; background: #1fa855; }
.btn--wa-solid::before { background: #178a45; }
.done.via-wa .btn--wa-solid { order: -1; }
.manual { margin-top: 24px; padding: 18px; border-radius: 16px; background: rgba(0,0,0,.25); }
.manual .done__label { font-size: 14px; color: rgba(255,255,255,.75); }
.manual__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.manual__to { flex: 1 1 220px; font-size: 14.5px; color: #fff; word-break: break-all; }
.manual__to small { color: rgba(255,255,255,.45); margin-right: 6px; font-family: var(--f-mono); text-transform: uppercase; font-size: 11px; letter-spacing: .08em; }
.chipbtn { padding: 9px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); transition: background .3s, box-shadow .3s; }
.chipbtn:hover { background: rgba(255,255,255,.08); }
.chipbtn--hot { background: var(--magenta); box-shadow: none; }
.chipbtn--hot:hover { background: #e0207a; }
.chipbtn.is-ok { background: #1fa855; box-shadow: none; }
.manual__msg { margin-top: 12px; }
.manual__msg summary { cursor: pointer; font-size: 13.5px; color: rgba(255,255,255,.6); }
.manual__msg pre { margin: 10px 0 0; }
.done__foot { margin: 18px 0 0 !important; max-width: none !important; font-size: 13.5px; color: rgba(255,255,255,.5) !important; }
.done__foot .linkbtn { margin-left: 6px; }
@media (max-width: 560px) { .mailpick { grid-template-columns: 1fr; } .done__head { align-items: flex-start; } }
