:root {
  color-scheme: dark;
  --bg: #03070c;
  --panel: rgba(13, 22, 31, 0.84);
  --line: rgba(132, 251, 230, 0.14);
  --text: #f5fbff;
  --muted: #9aabb7;
  --mint: #14f1c8;
  --cyan: #49d8ff;
  --danger: #ff6685;
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 8%, rgba(12, 210, 180, .16), transparent 28rem),
    radial-gradient(circle at 88% 34%, rgba(165, 80, 238, .13), transparent 30rem),
    linear-gradient(180deg, #061016 0%, #020509 66%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .16;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }

main { min-height: 100vh; }

.topbar {
  width: min(1180px, calc(100% - 40px));
  margin: auto;
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.brand span { display: grid; gap: 2px; }
.brand strong { font-size: 21px; letter-spacing: .18em; }
.brand small, .card-kicker { color: var(--mint); font-size: 10px; font-weight: 800; letter-spacing: .22em; }

.secure {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  color: #b6c7d0;
  font-size: 13px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  background: rgba(4,10,15,.5);
}

.secure i, .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 14px var(--mint);
}

.hero {
  width: min(1180px, calc(100% - 40px));
  margin: 72px auto 0;
}

.eyebrow {
  color: var(--mint);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .28em;
}

h1 {
  max-width: 850px;
  margin: 18px 0;
  font-size: clamp(42px, 7vw, 84px);
  line-height: .98;
  letter-spacing: -.055em;
}

.lead {
  max-width: 760px;
  margin: 0;
  color: #a8b8c2;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.65;
}

.steps {
  margin: 46px 0 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.steps article {
  min-height: 92px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(8,16,23,.66);
}

.steps b {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  color: #02100d;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--mint), var(--cyan));
}

.steps span { display: grid; gap: 4px; }
.steps strong { font-size: 15px; }
.steps small { color: var(--muted); }

.content-grid {
  display: grid;
  grid-template-columns: .94fr 1.06fr;
  gap: 18px;
}

.info-card, .action-card {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(14,27,36,.92), rgba(6,11,18,.9));
  box-shadow: 0 28px 90px rgba(0,0,0,.28);
}

.info-card::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -90px;
  top: -100px;
  border-radius: 50%;
  background: rgba(20,241,200,.08);
}

h2 {
  margin: 11px 0 14px;
  font-size: clamp(25px, 3vw, 34px);
  letter-spacing: -.03em;
}

.info-card ul {
  list-style: none;
  padding: 0;
  margin: 28px 0;
  display: grid;
  gap: 16px;
}

.info-card li {
  position: relative;
  padding-left: 30px;
  color: #cad7de;
  line-height: 1.5;
}

.info-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--mint);
  font-weight: 900;
}

.notice {
  padding: 17px;
  color: #91a3ad;
  font-size: 13px;
  line-height: 1.6;
  border-left: 2px solid #ffbd59;
  border-radius: 0 12px 12px 0;
  background: rgba(255,189,89,.06);
}

.action-card > p {
  margin: -4px 0 24px;
  color: var(--muted);
  line-height: 1.55;
}

form, .action-card label {
  display: grid;
  gap: 9px;
}

form { gap: 18px; }

label {
  color: #cbd7de;
  font-size: 13px;
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 52px;
  padding: 0 15px;
  color: var(--text);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  outline: none;
  background: rgba(2,7,11,.8);
  transition: border-color .2s, box-shadow .2s;
}

input:focus {
  border-color: rgba(20,241,200,.7);
  box-shadow: 0 0 0 4px rgba(20,241,200,.08);
}

.primary, .danger-button {
  min-height: 54px;
  margin-top: 4px;
  border: 0;
  border-radius: 15px;
  font-weight: 900;
}

.primary {
  color: #00110d;
  background: linear-gradient(135deg, var(--mint), #4ddcff);
  box-shadow: 0 14px 32px rgba(20,241,200,.14);
}

.danger { color: var(--danger); }

.danger-button {
  width: 100%;
  margin-top: 18px;
  color: white;
  border: 1px solid rgba(255,102,133,.45);
  background: linear-gradient(135deg, #d82e55, #ff6685);
}

button:disabled { cursor: not-allowed; opacity: .42; }

.account-row {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 13px;
  margin-bottom: 30px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.account-row img, .avatar-fallback {
  width: 48px;
  height: 48px;
  border-radius: 15px;
}

.account-row img { object-fit: cover; }
.avatar-fallback { display: grid; place-items: center; color: #01110d; background: var(--mint); font-weight: 900; }
.account-row span { display: grid; gap: 4px; }
.account-row small { color: var(--mint); font-size: 9px; font-weight: 900; letter-spacing: .18em; }

.link-button {
  padding: 8px;
  color: #9cadb6;
  border: 0;
  background: transparent;
}

.request-state {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 18px;
}

.request-state .status-dot { margin-top: 8px; }
.request-state small { color: var(--mint); font-size: 10px; letter-spacing: .14em; }
.request-state p { color: var(--muted); line-height: 1.6; }

.feedback {
  margin-top: 18px;
  padding: 13px 14px;
  font-size: 13px;
  line-height: 1.45;
  border-radius: 12px;
}

.feedback.success { color: #8af9df; background: rgba(20,241,200,.08); border: 1px solid rgba(20,241,200,.18); }
.feedback.error { color: #ff9eb2; background: rgba(255,102,133,.08); border: 1px solid rgba(255,102,133,.2); }

.loading {
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
}

.loading span {
  width: 22px;
  height: 22px;
  border: 2px solid rgba(20,241,200,.2);
  border-top-color: var(--mint);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

footer {
  width: min(1180px, calc(100% - 40px));
  margin: 28px auto 0;
  padding: 28px 0 40px;
  display: flex;
  justify-content: space-between;
  color: #677984;
  font-size: 12px;
}

footer a { color: #91a6b0; text-decoration: none; }
.footer-links { display: flex; gap: 18px; }

.legal-page { padding-bottom: 30px; }
.legal-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  min-height: 82px;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(3,7,12,.82);
  backdrop-filter: blur(18px);
}
.legal-language {
  min-height: 42px;
  padding: 0 16px;
  color: var(--text);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  background: rgba(8,16,23,.72);
  font-size: 12px;
  font-weight: 850;
}
.legal-language:hover { color: #00110d; border-color: var(--mint); background: var(--mint); }
.legal-hero {
  width: min(1180px, calc(100% - 40px));
  margin: auto;
  padding: clamp(85px, 12vw, 150px) 0 70px;
  border-bottom: 1px solid rgba(255,255,255,.09);
}
.legal-hero h1 { max-width: none; margin-bottom: 24px; font-size: clamp(68px, 11vw, 154px); }
.legal-hero > p { max-width: 760px; margin: 0; color: #bdcad1; font-size: clamp(18px, 2.2vw, 24px); line-height: 1.6; }
.legal-meta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 10px; }
.legal-meta span { padding: 9px 13px; color: #9badb6; border: 1px solid rgba(255,255,255,.1); border-radius: 999px; background: rgba(255,255,255,.025); font-size: 11px; font-weight: 800; letter-spacing: .06em; }
.privacy-summary {
  width: min(1180px, calc(100% - 40px));
  margin: 24px auto 0;
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 12px;
}
.privacy-summary article { min-height: 150px; padding: 25px; display: grid; align-content: end; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(145deg, rgba(12,25,33,.88), rgba(4,10,15,.78)); }
.privacy-summary strong { color: var(--mint); font-size: 25px; }
.privacy-summary p { margin: 8px 0 0; color: #9fb0ba; font-size: 14px; line-height: 1.55; }
.legal-layout {
  width: min(1180px, calc(100% - 40px));
  margin: 85px auto 0;
  display: grid;
  grid-template-columns: 250px minmax(0,1fr);
  align-items: start;
  gap: clamp(40px, 8vw, 110px);
}
.legal-toc { position: sticky; top: 110px; padding: 22px; border: 1px solid rgba(255,255,255,.09); border-radius: 20px; background: rgba(6,13,19,.72); }
.legal-toc > strong { color: var(--mint); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; }
.legal-toc nav { margin-top: 17px; display: grid; gap: 4px; }
.legal-toc a { padding: 8px 0; display: grid; grid-template-columns: 26px 1fr; gap: 8px; color: #8fa1ab; font-size: 11px; line-height: 1.25; text-decoration: none; }
.legal-toc a:hover { color: white; }.legal-toc a span { color: var(--mint); font-size: 9px; font-weight: 900; }
.legal-content { min-width: 0; }
.legal-content > section { position: relative; padding: 0 0 62px 58px; scroll-margin-top: 110px; border-left: 1px solid rgba(255,255,255,.1); }
.legal-content > section::after { content: ""; position: absolute; left: -5px; top: 10px; width: 9px; height: 9px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 16px rgba(20,241,200,.55); }
.legal-number { position: absolute; left: -50px; top: 7px; color: #51636d; font-size: 10px; font-weight: 900; letter-spacing: .16em; }
.legal-content h2 { margin: 0 0 20px; font-size: clamp(29px, 4vw, 47px); }
.legal-content p { margin: 0 0 16px; color: #afbec6; font-size: 15px; line-height: 1.78; }
.legal-content ul { margin: 20px 0; padding: 0; display: grid; gap: 13px; list-style: none; }
.legal-content li { position: relative; padding-left: 26px; color: #c3d0d6; font-size: 15px; line-height: 1.65; }
.legal-content li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 8px; border: 1px solid var(--mint); border-radius: 50%; box-shadow: inset 0 0 0 2px #071017; background: var(--mint); }
.legal-actions { margin: 8px 0 20px; display: flex; flex-wrap: wrap; gap: 10px; }
.legal-primary, .legal-secondary { min-height: 52px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; border-radius: 14px; font-size: 12px; font-weight: 900; text-decoration: none; }
.legal-primary { color: #00110d; background: linear-gradient(135deg,var(--mint),var(--cyan)); }
.legal-secondary { border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.03); }
.legal-note { padding: 17px 18px; color: #b59f79!important; border: 1px solid rgba(255,189,89,.17); border-radius: 14px; background: rgba(255,189,89,.055); font-size: 12px!important; }
.legal-footer { margin-top: 95px; border-top: 1px solid rgba(255,255,255,.08); }
.legal-footer div { display: flex; gap: 18px; }

@media (max-width: 760px) {
  .topbar { width: min(100% - 28px, 1180px); padding-top: 18px; }
  .secure { padding: 9px; }
  .secure { font-size: 0; }
  .hero { width: min(100% - 28px, 1180px); margin-top: 44px; }
  h1 { font-size: 48px; }
  .steps, .content-grid { grid-template-columns: 1fr; }
  .steps { gap: 8px; }
  .steps article { min-height: 76px; }
  footer { width: min(100% - 28px, 1180px); flex-direction: column; gap: 10px; }
  .footer-links { flex-direction: column; gap: 8px; }
  .legal-topbar { min-height: 72px; padding: 0 14px; }.legal-topbar .brand img { width: 38px; height: 38px; }.legal-language { padding: 0 11px; font-size: 10px; }
  .legal-hero, .privacy-summary, .legal-layout, .legal-footer { width: min(100% - 28px,1180px); }
  .legal-hero { padding-top: 70px; }.legal-hero h1 { font-size: clamp(63px, 20vw, 95px); }
  .privacy-summary { grid-template-columns: 1fr; }.privacy-summary article { min-height: 120px; }
  .legal-layout { margin-top: 55px; grid-template-columns: 1fr; gap: 42px; }
  .legal-toc { position: static; }.legal-toc nav { grid-template-columns: 1fr 1fr; }
  .legal-content > section { padding-left: 27px; }.legal-number { display: none; }
  .legal-content h2 { font-size: 31px; }
  .legal-content p, .legal-content li { font-size: 14px; }
  .legal-actions { display: grid; }.legal-primary, .legal-secondary { width: 100%; }
  .legal-footer div { flex-direction: column; gap: 8px; }
}
