:root {
  color-scheme: dark;
  --bg: #101113;
  --panel: rgba(25, 26, 30, 0.9);
  --panel-strong: rgba(18, 19, 22, 0.96);
  --line: rgba(188, 188, 192, 0.22);
  --line-soft: rgba(188, 188, 192, 0.13);
  --text: #f4f4f5;
  --muted: #a9a9ad;
  --soft: #7f8086;
  --blue: #4568ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: linear-gradient(180deg, #151517 0%, var(--bg) 52%, #0a0b0d 100%);
  color: var(--text);
}

.page-noise,
.page-lines {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.page-noise {
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 38px 38px;
}

.page-lines {
  overflow: hidden;
}

.page-lines::before,
.page-lines::after {
  content: "";
  position: absolute;
  display: block;
}

.page-lines::before {
  width: 960px;
  height: 760px;
  left: calc(50% - 1320px);
  top: 128px;
  border: 1px solid rgba(188, 188, 192, 0.1);
  border-right-color: transparent;
  border-bottom-color: rgba(117, 231, 162, 0.035);
  border-radius: 50%;
  transform: rotate(18deg);
}

.page-lines::after {
  width: 520px;
  height: 760px;
  left: calc(50% - 1180px);
  top: 188px;
  border-left: 1px solid rgba(188, 188, 192, 0.11);
  border-top: 1px solid rgba(188, 188, 192, 0.045);
  border-radius: 50%;
  box-shadow: -24px 0 80px rgba(188, 188, 192, 0.018);
  transform: rotate(10deg);
}

.line {
  position: absolute;
  display: block;
  border: 1px solid rgba(178, 178, 182, 0.18);
  border-radius: 50%;
}

.line-a {
  width: 960px;
  height: 960px;
  right: -420px;
  top: 50px;
  border-left-color: transparent;
  border-bottom-color: transparent;
  transform: rotate(-26deg);
}

.line-b {
  width: 720px;
  height: 720px;
  left: -355px;
  bottom: -330px;
  border-top-color: rgba(188, 188, 192, 0.045);
  border-right-color: transparent;
  border-bottom-color: rgba(188, 188, 192, 0.055);
  transform: rotate(24deg);
}

.line-c {
  width: 1px;
  height: 100vh;
  left: 50%;
  top: 0;
  border: 0;
  border-left: 1px solid rgba(178, 178, 182, 0.16);
  border-radius: 0;
}

.legal-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  padding: 10px clamp(18px, 5vw, 70px);
  border-bottom: 1px solid rgba(188, 188, 192, 0.08);
  background: rgba(16, 17, 19, 0.78);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.brand,
.support-link,
.primary-action,
.secondary-action {
  color: inherit;
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
}

.brand img {
  width: 44px;
  height: 36px;
  border-radius: 0;
  object-fit: contain;
}
.brand span{ font-family:'Space Grotesk',system-ui,sans-serif; font-weight:700; letter-spacing:-.01em; }

.support-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line-soft);
  border-radius: 13px;
  background: rgba(22, 23, 26, 0.72);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.support-link:hover {
  color: #fff;
  border-color: var(--line);
}

.about-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  border: 1px solid rgba(188, 188, 192, 0.12);
  border-radius: 16px;
  background: rgba(16, 17, 19, 0.66);
}

.about-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 12px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 760;
}

.about-nav a:hover {
  background: rgba(255, 255, 255, 0.055);
  color: #fff;
}

.legal-shell {
  position: relative;
  z-index: 1;
  width: min(980px, calc(100% - 36px));
  margin: 0 auto;
  padding: 44px 0 72px;
}

.legal-card {
  overflow: hidden;
  border: 1px solid rgba(188, 188, 192, 0.18);
  border-radius: 28px;
  background:
    radial-gradient(circle at 80% 8%, rgba(69, 104, 255, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(34, 35, 39, 0.86), rgba(19, 20, 23, 0.93)),
    var(--panel);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 30px 80px rgba(0, 0, 0, 0.36);
}

.legal-hero {
  position: relative;
  padding: clamp(28px, 5vw, 46px);
  border-bottom: 1px solid rgba(188, 188, 192, 0.12);
}

.legal-hero::after {
  content: "";
  position: absolute;
  right: -160px;
  top: -220px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(188, 188, 192, 0.09);
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  transform: rotate(-22deg);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.04;
  font-weight: 760;
  letter-spacing: 0;
}

.legal-hero p {
  max-width: 680px;
  margin-top: 14px;
  color: #c7cbd5;
  font-size: 18px;
  line-height: 1.55;
}

.updated {
  display: inline-flex;
  width: fit-content;
  margin-top: 24px;
  padding: 8px 12px;
  border: 1px solid rgba(188, 188, 192, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.legal-content {
  display: grid;
  gap: 12px;
  padding: clamp(20px, 4vw, 34px);
}

.legal-section {
  padding: 22px;
  border: 1px solid rgba(188, 188, 192, 0.11);
  border-radius: 20px;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.035), transparent 38%),
    rgba(14, 15, 18, 0.58);
}

.legal-section h2 {
  margin-bottom: 12px;
  color: #fff;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 750;
  letter-spacing: 0;
}

.legal-section p,
.legal-section li {
  color: #c5c9d3;
  font-size: 16px;
  line-height: 1.7;
}

.legal-section p + p,
.legal-section p + ul,
.legal-section ul + p {
  margin-top: 12px;
}

.legal-section ul {
  margin: 0;
  padding-left: 22px;
}

.legal-section li + li {
  margin-top: 6px;
}

.legal-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0 clamp(20px, 4vw, 34px) clamp(20px, 4vw, 34px);
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 15px;
  font-size: 15px;
  font-weight: 800;
}

.primary-action {
  background: linear-gradient(180deg, #4f70f7, #3145ff);
  color: #fff;
  box-shadow: 0 20px 42px rgba(49, 69, 255, 0.18);
}

.secondary-action {
  border: 1px solid var(--line-soft);
  background: rgba(22, 23, 26, 0.72);
  color: #d7dce7;
}

.secondary-action:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.06);
}

.about-shell {
  width: min(1120px, calc(100% - 36px));
}

.about-card {
  background:
    radial-gradient(circle at 78% 12%, rgba(69, 104, 255, 0.1), transparent 34%),
    radial-gradient(circle at 24% 72%, rgba(117, 231, 162, 0.045), transparent 30%),
    linear-gradient(180deg, rgba(34, 35, 39, 0.88), rgba(17, 18, 21, 0.94)),
    var(--panel);
}

.about-hero {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-hero::before {
  content: "";
  position: absolute;
  right: 68px;
  top: 44px;
  width: 380px;
  height: 260px;
  border: 1px solid rgba(188, 188, 192, 0.1);
  border-left-color: rgba(188, 188, 192, 0.03);
  border-bottom-color: rgba(188, 188, 192, 0.035);
  border-radius: 50%;
  transform: rotate(-18deg);
  opacity: 0.58;
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: clamp(20px, 4vw, 34px);
  border-bottom: 1px solid rgba(188, 188, 192, 0.1);
}

.about-feature {
  min-height: 220px;
  padding: 24px;
  border: 1px solid rgba(188, 188, 192, 0.13);
  border-radius: 22px;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.04), transparent 34%),
    rgba(11, 12, 15, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.about-feature-main {
  grid-row: span 2;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    radial-gradient(circle at 72% 20%, rgba(69, 104, 255, 0.13), transparent 36%),
    radial-gradient(circle at 16% 78%, rgba(255, 255, 255, 0.045), transparent 30%),
    rgba(11, 12, 15, 0.48);
}

.about-feature-kicker {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 14px;
  padding: 7px 10px;
  border: 1px solid rgba(117, 231, 162, 0.26);
  border-radius: 999px;
  background: rgba(30, 125, 72, 0.18);
  color: #86f3af;
  font-size: 12px;
  font-weight: 800;
}

.about-feature h2,
.about-note h2 {
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.05;
  letter-spacing: 0;
}

.about-feature p,
.about-note p {
  margin-top: 14px;
  color: #b9bdc8;
  font-size: 16px;
  line-height: 1.62;
}

.about-note {
  margin: clamp(20px, 4vw, 34px);
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid rgba(188, 188, 192, 0.13);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(69, 104, 255, 0.12), transparent 42%),
    rgba(10, 11, 14, 0.52);
}

.about-note .primary-action {
  margin-top: 22px;
}

.about-legal-actions {
  border-top: 1px solid rgba(188, 188, 192, 0.1);
}

.about-legal-actions .secondary-action {
  border-color: rgba(255, 255, 255, 0.72);
  background: linear-gradient(180deg, #ffffff 0%, #e7e7e9 100%);
  color: #141518;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 18px 34px rgba(0, 0, 0, 0.22);
}

.about-legal-actions .secondary-action:hover {
  border-color: #ffffff;
  background: linear-gradient(180deg, #ffffff 0%, #f1f1f2 100%);
  color: #0d0e11;
}

@media (max-width: 820px) {
  .about-nav {
    gap: 2px;
  }

  .about-nav a {
    padding: 0 9px;
    font-size: 12px;
  }

  .about-hero {
    min-height: auto;
  }

  .about-hero::before {
    right: -140px;
    top: -80px;
    opacity: 0.36;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-feature,
  .about-feature-main {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .legal-header {
    padding: 10px 14px;
  }

  .support-link {
    height: 34px;
    padding: 0 11px;
    font-size: 13px;
  }

  .legal-shell {
    width: min(100% - 20px, 980px);
    padding: 22px 0 36px;
  }

  .legal-card {
    border-radius: 22px;
  }

  .legal-hero,
  .legal-content,
  .legal-actions {
    padding-left: 20px;
    padding-right: 20px;
  }

  .legal-hero p,
  .legal-section p,
  .legal-section li {
    font-size: 15px;
  }

  .legal-section {
    padding: 18px;
    border-radius: 18px;
  }

  .legal-actions {
    grid-template-columns: 1fr;
  }
}


/* === фон как в кабинете /subscriptions (override) === */
body{ background: linear-gradient(180deg,#151517 0%,#101113 52%,#0a0b0d 100%) !important; }
.page-lines .line,.page-lines .line-a,.page-lines .line-b,.page-lines .line-c{ display:none !important; }
.page-noise{ opacity:.12 !important; background-image:linear-gradient(rgba(255,255,255,.018) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.018) 1px,transparent 1px) !important; background-size:38px 38px !important; }
.page-lines::before{ content:"" !important; position:absolute !important; display:block !important; width:1100px !important; height:1100px !important; left:-540px !important; top:50% !important; right:auto !important; bottom:auto !important; transform:translateY(-50%) !important; border:1px solid rgba(255,255,255,.05) !important; border-radius:50% !important; box-shadow:none !important; }
.page-lines::after{ content:"" !important; position:absolute !important; display:block !important; width:1160px !important; height:1160px !important; right:-560px !important; top:-440px !important; left:auto !important; bottom:auto !important; transform:none !important; border:1px solid rgba(255,255,255,.045) !important; border-radius:50% !important; box-shadow:none !important; }
