:root {
  color-scheme: dark;
  --bg: #08060d;
  --surface: #100d16;
  --surface-2: #17111f;
  --line: #31263d;
  --line-strong: #4b3760;
  --text: #f5f1fa;
  --muted: #aaa0b2;
  --accent: #b56bff;
  --accent-2: #e572ff;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 12% 0%, rgba(141, 63, 211, .2), transparent 31rem),
    radial-gradient(circle at 90% 30%, rgba(92, 37, 140, .16), transparent 34rem),
    linear-gradient(180deg, #09060f, #07050b 62%, #0c0711);
  color: var(--text);
  font: 15px/1.72 Inter, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; }

.legal-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  background: rgba(8, 6, 13, .9);
  backdrop-filter: blur(16px);
}
.header-inner {
  width: min(1080px, calc(100% - 36px));
  min-height: 70px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; color: white; font-weight: 900; letter-spacing: .08em; text-decoration: none; }
.brand img { width: 40px; height: 40px; object-fit: contain; }
.back-link { padding: 9px 13px; border: 1px solid var(--line); border-radius: 9px; color: #d7cde0; font-size: 12px; font-weight: 700; text-decoration: none; }
.back-link:hover { border-color: #755294; color: white; }

.legal-shell {
  width: min(920px, calc(100% - 36px));
  margin: 48px auto 64px;
}
.legal-document,
.support-card,
.price-section {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(16, 13, 22, .92);
  box-shadow: 0 26px 80px rgba(0, 0, 0, .26);
}
.legal-document { padding: clamp(24px, 5vw, 54px); }
.legal-document h1,
.page-intro h1 { margin: 0; font-size: clamp(34px, 6vw, 54px); line-height: 1.06; letter-spacing: -.045em; }
.legal-updated { margin: 16px 0 34px; color: var(--muted); font-size: 13px; }
.legal-document h2 { margin: 34px 0 12px; color: #f3e7ff; font-size: 20px; line-height: 1.3; }
.legal-document p { margin: 0 0 12px; color: #c8bfce; }
.legal-document ul { margin: 10px 0 18px; padding-left: 22px; color: #c8bfce; }
.legal-document li + li { margin-top: 7px; }
.legal-document a,
.support-card a,
.page-note a { color: #d69cff; text-underline-offset: 3px; }

.page-intro { margin-bottom: 24px; }
.page-intro .eyebrow { margin: 0 0 10px; color: var(--accent-2); font-size: 11px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.page-intro p:last-child { max-width: 68ch; margin: 16px 0 0; color: var(--muted); }

.support-card { padding: clamp(22px, 5vw, 38px); }
.support-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field.is-wide { grid-column: 1 / -1; }
.form-field label { color: #e2d9e8; font-size: 12px; font-weight: 750; }
.form-field small { color: #82778a; font-size: 10px; }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  outline: 0;
  background: #0a080e;
  color: var(--text);
}
.form-field input,
.form-field select { height: 46px; padding: 0 13px; }
.form-field textarea { min-height: 170px; resize: vertical; padding: 12px 13px; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(181, 107, 255, .12); }
.form-consent { grid-column: 1 / -1; display: grid; grid-template-columns: 18px 1fr; gap: 10px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.form-consent input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--accent); }
.submit-button { grid-column: 1 / -1; min-height: 48px; border: 1px solid #bd7aff; border-radius: 11px; background: linear-gradient(135deg, #9550e7, #bd5be7); color: white; cursor: pointer; font-weight: 850; }
.submit-button:disabled { cursor: wait; opacity: .65; }
.form-result { grid-column: 1 / -1; margin: 0; padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px; background: #0c0911; color: #d7cde0; }
.form-result.is-success { border-color: rgba(91, 211, 145, .5); color: #9cf0c2; }
.form-result.is-error { border-color: rgba(255, 105, 139, .5); color: #ff9db4; }
.support-guidance { margin-top: 20px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 11px; color: var(--muted); font-size: 12px; }
.support-guidance strong { color: var(--text); }

.price-section { margin-top: 18px; padding: clamp(20px, 4vw, 34px); }
.price-section h2 { margin: 0 0 6px; font-size: 23px; }
.price-section > p { margin: 0 0 18px; color: var(--muted); font-size: 12px; }
.price-table { width: 100%; border-collapse: collapse; }
.price-table th,
.price-table td { padding: 13px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.price-table th { color: #8f8299; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.price-table td { color: #cec4d4; font-size: 12px; }
.price-table td:first-child { color: white; font-weight: 800; }
.price-table td:nth-child(2) { color: #dcadff; font-weight: 800; white-space: nowrap; }
.price-table tr:last-child td { border-bottom: 0; }
.page-note { margin: 22px 0 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 11px; color: var(--muted); font-size: 12px; }

.site-footer { margin-top: auto; padding: 28px 18px; border-top: 1px solid rgba(255, 255, 255, .07); background: rgba(7, 5, 11, .82); }
.footer-links,
.footer-meta { width: min(1080px, 100%); margin-inline: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 9px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 38px; padding: 0 13px; border: 1px solid var(--line); border-radius: 10px; color: #d9d0e0; font-size: 11px; font-weight: 700; text-decoration: none; }
.footer-links a:hover { border-color: #654783; color: white; }
.footer-meta { display: flex; justify-content: space-between; gap: 16px; margin-top: 18px; color: #7f7488; font-size: 10px; }
.review-code strong { color: #b8a9c4; letter-spacing: .04em; }

@media (max-width: 680px) {
  .legal-shell { width: min(100% - 24px, 920px); margin-block: 30px 44px; }
  .header-inner { width: min(100% - 24px, 1080px); }
  .brand span { display: none; }
  .support-form { grid-template-columns: 1fr; }
  .form-field.is-wide,
  .form-consent,
  .submit-button,
  .form-result { grid-column: 1; }
  .price-table thead { display: none; }
  .price-table,
  .price-table tbody,
  .price-table tr,
  .price-table td { display: block; width: 100%; }
  .price-table tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .price-table tr:last-child { border-bottom: 0; }
  .price-table td { padding: 3px 0; border: 0; white-space: normal !important; }
  .price-table td:nth-child(2) { margin: 3px 0; }
  .footer-meta { flex-direction: column; gap: 6px; }
}

