:root {
  color: #111722;
  background: #ffffff;
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --blue: #075ee8;
  --blue-hover: #004dc6;
  --text: #111722;
  --muted: #566174;
  --line: #d9dee7;
  --line-strong: #c8cfdb;
  --soft: #f7f9fc;
  --success: #258b60;
  --radius: 7px;
  --shadow-focus: 0 0 0 3px rgb(7 94 232 / 16%);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--text);
  background: #ffffff;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}

.legal-header {
  min-height: 73px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 12px clamp(22px, 3vw, 40px);
  border-bottom: 1px solid var(--line);
}

.legal-brand {
  color: var(--text);
  font-size: 24px;
  font-weight: 750;
  letter-spacing: -0.035em;
}

.legal-brand strong {
  color: var(--blue);
}

.legal-brand:hover {
  text-decoration: none;
}

.legal-header nav,
.legal-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
}

.legal-header nav a {
  color: #313a49;
  font-size: 14px;
  font-weight: 650;
}

.legal-main {
  width: min(860px, calc(100% - clamp(32px, 6vw, 88px)));
  min-height: calc(100vh - 164px);
  margin: 0 auto;
  padding: 52px 0 66px;
}

.legal-main--wide {
  width: min(1120px, calc(100% - clamp(32px, 6vw, 88px)));
}

.legal-hero {
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.legal-hero h1 {
  max-width: 820px;
  margin: 0;
  color: #0e131d;
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 760;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.legal-hero p {
  max-width: 740px;
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.updated {
  display: block;
  margin-top: 12px;
  color: #798394;
  font-size: 12px;
}

.legal-content {
  padding-top: 12px;
}

.legal-content section {
  padding: 25px 0 4px;
}

.legal-content h2 {
  margin: 0 0 9px;
  color: #182338;
  font-size: 23px;
  letter-spacing: -0.025em;
}

.legal-content h3 {
  margin: 20px 0 6px;
  color: #243047;
  font-size: 16px;
}

.legal-content p,
.legal-content li {
  color: #4e596b;
  font-size: 15px;
  line-height: 1.72;
}

.legal-content p {
  margin: 8px 0;
}

.legal-content ul,
.legal-content ol {
  margin: 9px 0;
  padding-left: 23px;
}

.legal-content li + li {
  margin-top: 7px;
}

.notice {
  margin: 26px 0 5px;
  padding: 17px 19px;
  border: 1px solid #a9c7f7;
  border-radius: var(--radius);
  color: #35445d;
  background: #f7faff;
  font-size: 14px;
  line-height: 1.58;
}

.notice strong {
  color: #182338;
}

.support-address {
  display: inline-block;
  padding: 3px 7px;
  border-radius: 4px;
  color: #1d2d48;
  background: #edf3fd;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.94em;
  overflow-wrap: anywhere;
}

.plans {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 14px;
  margin-top: 32px;
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 27px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.plan--paid {
  border-color: #8eb8fa;
  background: #f8fbff;
}

.plan h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.025em;
}

.plan__price {
  margin-top: 11px;
  color: #101827;
  font-size: 34px;
  font-weight: 760;
  letter-spacing: -0.045em;
}

.plan__billing {
  margin-top: 2px;
  color: #6d7788;
  font-size: 12px;
}

.plan > p {
  margin: 16px 0 0;
  color: #536073;
  font-size: 14px;
  line-height: 1.6;
}

.plan ul {
  flex: 1;
  margin: 18px 0 22px;
  padding-left: 20px;
  color: #3f4b5e;
}

.plan li {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.5;
}

.button {
  min-height: 43px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--blue);
  border-radius: 6px;
  padding: 9px 17px;
  color: #ffffff;
  background: var(--blue);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
}

.button:not(:disabled):hover {
  border-color: var(--blue-hover);
  background: var(--blue-hover);
  text-decoration: none;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.54;
}

.checkout-status {
  min-height: 35px;
  margin: 10px 0 0;
  color: #6e798b;
  font-size: 11px;
  line-height: 1.45;
}

.pricing-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
  margin-top: 34px;
  padding-top: 5px;
}

.pricing-details section {
  padding: 20px 0;
}

.download-panel {
  margin-top: 30px;
  padding: 25px;
  border: 1px solid #99c4a9;
  border-radius: var(--radius);
  background: #f5fbf7;
}

.download-panel h2 {
  margin: 0;
  color: #183b2b;
  font-size: 23px;
}

.download-panel p {
  color: #496255;
}

.download-panel .button {
  margin-top: 8px;
  border-color: var(--success);
  background: var(--success);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.contact-grid section {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.contact-grid h2 {
  margin: 0 0 8px;
  font-size: 19px;
}

.contact-grid p {
  margin: 0;
  color: #556174;
  font-size: 14px;
  line-height: 1.6;
}

.legal-footer {
  width: min(1120px, calc(100% - clamp(32px, 6vw, 88px)));
  min-height: 91px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  color: #697386;
  font-size: 12px;
}

@media (max-width: 760px) {
  .legal-header {
    grid-template-columns: 1fr;
  }

  .legal-header nav {
    gap: 10px 20px;
  }

  .legal-main {
    padding-top: 38px;
  }

  .plans,
  .pricing-details,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .legal-footer {
    grid-template-columns: 1fr;
    padding: 24px 0;
  }
}
