.legal {
  padding: 60px 0 100px;
  position: relative;
}
.legal::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 400px;
  background: radial-gradient(ellipse at 50% 0%, rgba(240, 193, 75, 0.08), transparent 60%);
  pointer-events: none;
}

.legal-container {
  max-width: 820px;
  position: relative;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 32px;
  transition: color .2s;
}
.back-link:hover { color: var(--accent); }

.legal h1 {
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 16px 0 12px;
  line-height: 1.1;
}

.legal-meta {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.legal-meta strong { color: var(--text); font-weight: 600; }

.legal-toc {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 28px;
  margin-bottom: 48px;
}
.legal-toc strong {
  display: block;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 14px;
}
.legal-toc ol {
  margin: 0;
  padding-left: 20px;
  columns: 2;
  column-gap: 32px;
}
.legal-toc li {
  margin-bottom: 6px;
  break-inside: avoid;
}
.legal-toc a {
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  transition: color .2s;
}
.legal-toc a:hover { color: var(--accent); }

.legal section {
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 90px;
}
.legal section:last-of-type { border-bottom: 0; }

.legal h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.legal h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 20px 0 10px;
  color: var(--text);
}

.legal p {
  font-size: 16px;
  line-height: 1.75;
  color: #d4d4dc;
  margin-bottom: 14px;
}

.legal ul, .legal ol {
  padding-left: 22px;
  margin-bottom: 16px;
}
.legal li {
  font-size: 16px;
  line-height: 1.75;
  color: #d4d4dc;
  margin-bottom: 8px;
}
.legal strong { color: var(--text); font-weight: 600; }

.legal a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dashed rgba(240, 193, 75, 0.4);
  transition: border-color .2s;
}
.legal a:hover { border-bottom-color: var(--accent); }

.callout {
  background: rgba(240, 193, 75, 0.08);
  border: 1px solid rgba(240, 193, 75, 0.25);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 18px 22px;
  margin: 24px 0;
  font-size: 15px;
  line-height: 1.7;
  color: #d4d4dc;
}
.callout strong { color: var(--accent); }

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  background: var(--card);
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  font-size: 15px;
}
.legal-table th,
.legal-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.legal-table th {
  background: var(--card-2);
  color: var(--accent);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.legal-table tr:last-child td { border-bottom: 0; }
.legal-table tr:hover td { background: rgba(240, 193, 75, 0.04); }

.contact-list { list-style: none; padding: 0; }
.contact-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.contact-list li:last-child { border-bottom: 0; }

.support-page .legal-container {
  max-width: 760px;
}

.support-section {
  border-bottom: 0;
  padding-top: 8px;
}

.support-actions {
  display: grid;
  gap: 14px;
}

.legal .support-action {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  color: var(--text);
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.legal .support-action:hover {
  transform: translateY(-2px);
  border-color: rgba(240, 193, 75, 0.35);
  background: var(--card-2);
}

.legal .support-action-primary {
  border-color: rgba(240, 193, 75, 0.35);
  background: rgba(240, 193, 75, 0.08);
}

.support-action-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(240, 193, 75, 0.12);
  color: var(--accent);
  flex: 0 0 auto;
}

.support-action strong {
  display: block;
  font-size: 17px;
  color: var(--text);
  margin-bottom: 4px;
}

.support-action small {
  display: block;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

@media (max-width: 640px) {
  .legal-toc ol { columns: 1; }
  .legal h1 { font-size: 32px; }
  .legal h2 { font-size: 22px; }
  .legal-table { font-size: 14px; }
  .legal-table th, .legal-table td { padding: 10px 12px; }
  .support-action { align-items: flex-start; padding: 18px; }
  .support-action-icon { width: 46px; height: 46px; border-radius: 12px; }
}
