:root {
  --bg: #07152d;
  --panel: #10274b;
  --panel-soft: rgba(16, 39, 75, 0.78);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f7f9ff;
  --muted: #afbed3;
  --blue: #58a8ff;
  --cyan: #54e2d2;
  --gold: #ffc963;
  --red: #ff9eaa;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 10%, rgba(39, 113, 205, 0.25), transparent 31rem),
    radial-gradient(circle at 90% 86%, rgba(11, 172, 157, 0.15), transparent 29rem),
    linear-gradient(145deg, #061127 0%, #081a35 52%, #07152d 100%);
  font-family: "Noto Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
a { color: #9beee5; }
a:hover { color: #fff; }

.legal-topbar,
.legal-footer {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.legal-topbar { min-height: 88px; }
.brand {
  color: inherit;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(86, 168, 255, 0.24), rgba(84, 226, 210, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.brand-mark svg { width: 27px; fill: rgba(84, 226, 210, 0.12); stroke: #78efe2; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.brand > span:last-child { display: grid; }
.brand strong { font-size: 18px; }
.brand small { margin-top: 2px; color: var(--muted); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; }
.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 15px;
  border-radius: 13px;
  border: 1px solid var(--line);
  color: #dce8f7;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.04);
}

.legal-shell { width: min(1120px, calc(100% - 36px)); margin: 10px auto 70px; }
.legal-hero,
.legal-content {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.legal-hero {
  padding: clamp(34px, 6vw, 72px);
  border-radius: 32px 32px 0 0;
  background: linear-gradient(135deg, rgba(16, 42, 83, 0.94), rgba(7, 25, 52, 0.86));
}
.kicker { color: #9eefe6; font-size: 12px; font-weight: 900; letter-spacing: 0.13em; text-transform: uppercase; }
.legal-hero h1 { margin: 15px 0 18px; font-size: clamp(42px, 6vw, 70px); line-height: 1; letter-spacing: -0.05em; }
.legal-hero > p { max-width: 800px; margin: 0; color: #c6d4e7; font-size: 18px; line-height: 1.75; }
.legal-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 30px; }
.summary-card { padding: 18px; border-radius: 18px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.045); }
.summary-card b { display: block; margin-bottom: 6px; font-size: 15px; }
.summary-card span { color: var(--muted); font-size: 13px; line-height: 1.55; }

.legal-content {
  padding: clamp(28px, 5vw, 60px);
  border-top: 0;
  border-radius: 0 0 32px 32px;
  background: rgba(7, 24, 51, 0.86);
}
.legal-content h2 { margin: 42px 0 12px; font-size: clamp(23px, 3vw, 31px); letter-spacing: -0.025em; }
.legal-content h3 { margin: 25px 0 8px; font-size: 19px; }
.legal-content p,
.legal-content li { color: #cbd7e7; font-size: 16px; line-height: 1.75; }
.legal-content ul { padding-left: 22px; }
.note,
.warning {
  padding: 18px 20px;
  border-radius: 17px;
  border: 1px solid rgba(255, 201, 99, 0.25);
  background: rgba(255, 201, 99, 0.07);
}
.warning { border-color: rgba(255, 126, 141, 0.24); background: rgba(255, 126, 141, 0.07); }
.note b,
.warning b { color: #fff; }
.legal-table { width: 100%; margin: 20px 0; border-collapse: separate; border-spacing: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; }
.legal-table th,
.legal-table td { padding: 15px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); color: #cbd7e7; font-size: 13px; line-height: 1.55; }
.legal-table th { color: #fff; background: rgba(88, 168, 255, 0.11); }
.legal-table tr:last-child td { border-bottom: 0; }

.legal-footer { min-height: 88px; padding: 20px 0 36px; color: var(--muted); font-size: 13px; }
.legal-footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 16px; }
.legal-footer a { color: #c9d8e9; text-decoration: none; }

.thankyou-panel {
  padding: clamp(30px, 5vw, 58px);
  border: 1px solid var(--line);
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(16, 42, 83, 0.94), rgba(7, 25, 52, 0.86));
  box-shadow: var(--shadow);
}
.thankyou-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 34px; align-items: start; }
.thankyou-main h1 { margin: 18px 0; max-width: 720px; font-size: clamp(42px, 5vw, 65px); line-height: 1.04; letter-spacing: -0.05em; }
.thankyou-main p { max-width: 740px; color: #cbd7e7; font-size: 17px; line-height: 1.72; }
.success-badge { width: 76px; height: 76px; margin-top: 24px; display: grid; place-items: center; border-radius: 25px; background: rgba(84, 226, 210, 0.12); border: 1px solid rgba(84, 226, 210, 0.32); color: var(--cyan); font-size: 38px; font-weight: 900; }
.action-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button-primary, .button-secondary { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 19px; border-radius: 14px; text-decoration: none; font-weight: 850; }
.button-primary { color: #06172d; background: linear-gradient(100deg, var(--blue), var(--cyan)); }
.button-secondary { color: #fff; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.05); }
.thankyou-side { display: grid; gap: 12px; }
.mini-card { padding: 20px; border-radius: 19px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.045); }
.mini-card b { display: block; font-size: 16px; }
.mini-card p, .mini-card li { color: var(--muted); font-size: 13px; line-height: 1.65; }
.mini-card ul { margin-bottom: 0; padding-left: 20px; }

@media (max-width: 760px) {
  .legal-summary { grid-template-columns: 1fr; }
  .legal-topbar { align-items: flex-start; padding: 18px 0; }
  .brand small { display: none; }
  .legal-shell { width: min(100% - 20px, 1120px); margin-top: 0; }
  .legal-hero { border-radius: 24px 24px 0 0; }
  .legal-content { border-radius: 0 0 24px 24px; }
  .legal-table { display: block; overflow-x: auto; }
  .legal-footer { flex-direction: column; align-items: flex-start; }
  .legal-footer nav { justify-content: flex-start; }
  .thankyou-grid { grid-template-columns: 1fr; }
  .thankyou-panel { border-radius: 24px; }
}

@media print {
  body { background: #fff; color: #111; }
  .legal-topbar, .legal-footer { display: none; }
  .legal-shell { width: 100%; margin: 0; }
  .legal-hero, .legal-content { border: 0; box-shadow: none; background: #fff; color: #111; }
  .legal-hero > p, .legal-content p, .legal-content li, .legal-table td { color: #222; }
}
