:root {
  color-scheme: dark;
  --bg: #050713;
  --panel: rgba(15, 19, 36, 0.96);
  --panel-2: rgba(20, 25, 48, 0.9);
  --line: rgba(255,255,255,0.10);
  --text: rgba(255,255,255,0.90);
  --muted: rgba(255,255,255,0.62);
  --accent: #7667ff;
  --accent-2: #5140ff;
  --warning: #ffd38a;
  --good: #9df0bd;
}
* { 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 16% 4%, rgba(83, 54, 255, 0.22), transparent 30rem),
    radial-gradient(circle at 88% 8%, rgba(40, 143, 255, 0.12), transparent 32rem),
    var(--bg);
}
a { color: #a99fff; }
a:hover { color: #d5d0ff; }
.legal-shell { width: min(980px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 56px; }
.legal-topbar {
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  margin-bottom: 18px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px;
  background: rgba(10, 13, 28, 0.72); backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 750; }
.brand-mark { width: 34px; height: 34px; display:grid; place-items:center; border-radius: 12px; background: linear-gradient(145deg, #5745ff, #8b7cff); box-shadow: 0 10px 28px rgba(83,65,255,.34); }
.legal-nav { display:flex; gap: 12px; flex-wrap:wrap; justify-content:flex-end; }
.legal-nav a { color: var(--muted); text-decoration:none; font-size: 13px; }
.legal-nav a:hover, .legal-nav a[aria-current="page"] { color:#fff; }
.legal-card {
  border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  background: linear-gradient(180deg, rgba(17,21,40,.97), rgba(7,9,20,.98));
  box-shadow: 0 28px 90px rgba(0,0,0,.38);
}
.legal-hero { padding: 34px 36px 26px; border-bottom: 1px solid var(--line); }
.eyebrow { color: #a99fff; font-weight: 760; letter-spacing: .08em; text-transform: uppercase; font-size: 11px; }
h1 { margin: 9px 0 8px; color:#fff; font-size: clamp(30px, 5vw, 48px); line-height:1.05; letter-spacing:-.035em; }
.lede { max-width: 760px; margin:0; color:var(--muted); font-size: 16px; line-height:1.65; }
.legal-body { padding: 30px 36px 38px; }
h2 { color:#fff; margin: 30px 0 10px; font-size: 20px; letter-spacing:-.015em; }
h2:first-child { margin-top: 0; }
h3 { color:#fff; margin: 22px 0 8px; font-size: 16px; }
p, li { line-height:1.7; }
p { margin: 9px 0 13px; }
ul, ol { padding-left: 22px; }
li { margin: 6px 0; }
.muted { color:var(--muted); }
.notice, .warning, .contact-card {
  margin: 18px 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.035);
}
.warning { border-color: rgba(255,211,138,.28); background: rgba(255,211,138,.06); color: #f8e7c6; }
.notice strong, .warning strong { color:#fff; }
.contact-card dl { display:grid; grid-template-columns: 180px 1fr; gap: 8px 14px; margin:0; }
.contact-card dt { color:var(--muted); }
.contact-card dd { margin:0; color:#fff; overflow-wrap:anywhere; }
.table-wrap { overflow-x:auto; margin: 16px 0; border:1px solid var(--line); border-radius:14px; }
table { width:100%; border-collapse:collapse; min-width: 680px; }
th, td { padding: 13px 14px; text-align:left; vertical-align:top; border-bottom:1px solid var(--line); line-height:1.55; }
th { color:#fff; background:rgba(255,255,255,.035); font-size:13px; }
td { color:rgba(255,255,255,.78); font-size:13px; }
tr:last-child td { border-bottom:0; }
.legal-footer {
  margin-top: 22px; padding: 28px 32px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, .7fr); gap: 28px;
  border: 1px solid var(--line); border-radius: 20px;
  background: linear-gradient(135deg, rgba(21, 26, 52, .96), rgba(9, 13, 29, .96));
  color: var(--muted); font-size: 13px;
}
.legal-footer-brand, .legal-footer-links { display: grid; align-content: start; gap: 10px; }
.legal-footer-brand > strong { color: #fff; font-size: 20px; letter-spacing: -.02em; }
.legal-footer-links > strong { color: #c9c2ff; font-size: 11px; letter-spacing: .13em; }
.legal-footer a { color: #c3bcff; text-decoration: none; overflow-wrap: anywhere; }
.legal-footer a:hover { color: #fff; text-decoration: underline; }
.report-form { display:grid; gap:16px; }
.field { display:grid; gap:7px; }
.field span { color:#fff; font-size:13px; font-weight:700; }
.field small { color:var(--muted); line-height:1.45; }
input, select, textarea {
  width:100%; border:1px solid rgba(255,255,255,.14); border-radius:12px; background:#0b1021; color:#fff;
  padding:12px 13px; font:inherit; outline:none;
}
input:focus, select:focus, textarea:focus { border-color:#7464ff; box-shadow:0 0 0 3px rgba(116,100,255,.14); }
textarea { min-height: 150px; resize: vertical; }
.form-actions { display:flex; gap:12px; align-items:center; flex-wrap:wrap; }
.primary-button {
  border:0; border-radius:12px; padding:12px 18px; color:#fff; font-weight:760; cursor:pointer;
  background:linear-gradient(135deg, var(--accent-2), var(--accent)); box-shadow:0 12px 30px rgba(81,64,255,.26);
}
.primary-button:disabled { opacity:.5; cursor:not-allowed; }
.form-message { min-height: 22px; color:var(--muted); font-size:13px; }
.form-message.ok { color:var(--good); }
.form-message.bad { color:#ff9da9; }
.case-box { display:none; margin-top:12px; padding:14px 16px; border-radius:12px; border:1px solid rgba(157,240,189,.28); background:rgba(157,240,189,.06); }
.case-box.visible { display:block; }
@media (max-width: 720px) {
  .legal-shell { width:min(100% - 20px, 980px); padding-top:10px; }
  .legal-topbar { align-items:flex-start; flex-direction:column; }
  .legal-nav { justify-content:flex-start; }
  .legal-hero, .legal-body { padding-left:20px; padding-right:20px; }
  .contact-card dl { grid-template-columns: 1fr; gap:3px; }
  .contact-card dd { margin-bottom:8px; }
  .legal-footer { grid-template-columns: 1fr; padding: 24px 20px; gap: 24px; }
}
