:root {
  color-scheme: light;
  --legal-ink: #10233d;
  --legal-muted: #607089;
  --legal-line: #dbe3ec;
  --legal-paper: #ffffff;
  --legal-canvas: #f4f7fa;
  --legal-accent: #075cff;
  --legal-navy: #08192d;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--legal-canvas);
  color: var(--legal-ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

a {
  color: #064fcf;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #00399a;
}

a:focus-visible {
  border-radius: 3px;
  outline: 3px solid rgba(7, 92, 255, 0.32);
  outline-offset: 3px;
}

.legal-site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 14px clamp(20px, 4vw, 64px);
  background: var(--legal-navy);
  color: #fff;
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: #fff;
  text-decoration: none;
}

.legal-brand img {
  display: block;
  width: 82px;
  height: auto;
}

.legal-site-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 20px;
}

.legal-site-actions a {
  color: #fff;
  font-size: 0.94rem;
  font-weight: 650;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(190px, 250px) minmax(0, 840px);
  justify-content: center;
  gap: clamp(24px, 4vw, 56px);
  width: min(1180px, calc(100% - 40px));
  margin: clamp(34px, 6vw, 74px) auto;
}

.legal-navigation {
  position: sticky;
  top: 24px;
  align-self: start;
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--legal-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
}

.legal-navigation a {
  padding: 8px 10px;
  border-radius: 9px;
  color: #344760;
  font-size: 0.88rem;
  font-weight: 620;
  line-height: 1.35;
  text-decoration: none;
}

.legal-navigation a:hover,
.legal-navigation a[aria-current="page"] {
  background: #e9f0ff;
  color: #064fcf;
}

.legal-main {
  min-width: 0;
}

.legal-document {
  padding: clamp(28px, 6vw, 72px);
  border: 1px solid var(--legal-line);
  border-radius: 24px;
  background: var(--legal-paper);
  box-shadow: 0 20px 60px rgba(8, 25, 45, 0.07);
}

.legal-document h1 {
  max-width: 18ch;
  margin: 0 0 18px;
  color: var(--legal-navy);
  font-size: clamp(2rem, 6vw, 3.35rem);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.legal-document h2 {
  margin: 2.6em 0 0.7em;
  color: var(--legal-navy);
  font-size: clamp(1.25rem, 2.6vw, 1.6rem);
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.legal-document h1 + p {
  margin-top: 0;
  color: var(--legal-muted);
}

.legal-document p,
.legal-document li,
.legal-document td,
.legal-document th {
  overflow-wrap: anywhere;
}

.legal-document ul {
  padding-left: 1.35em;
}

.legal-document li + li {
  margin-top: 0.55em;
}

.legal-table-scroll {
  max-width: 100%;
  margin: 24px 0;
  overflow-x: auto;
  border: 1px solid var(--legal-line);
  border-radius: 13px;
}

table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  background: #fff;
  font-size: 0.92rem;
  line-height: 1.55;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--legal-line);
  text-align: left;
  vertical-align: top;
}

th {
  background: #eef3f8;
  color: var(--legal-navy);
}

tbody tr:last-child td {
  border-bottom: 0;
}

.legal-contact {
  margin-top: 48px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid #b8ccf5;
  border-radius: 18px;
  background: #f0f5ff;
  scroll-margin-top: 24px;
}

.legal-contact h2 {
  margin-top: 0;
}

.legal-contact-slot:empty,
.legal-contact-status:empty {
  display: none;
}

.support-contact-form {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

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

.support-contact-form label {
  display: grid;
  gap: 7px;
  color: var(--legal-ink);
  font-size: 0.9rem;
  font-weight: 700;
}

.support-contact-form input,
.support-contact-form select,
.support-contact-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #b6c4d5;
  border-radius: 10px;
  background: #fff;
  color: var(--legal-ink);
  font: inherit;
}

.support-contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.support-contact-form button {
  justify-self: start;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: var(--legal-accent);
  color: #fff;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.support-contact-form button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.support-contact-honeypot {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.legal-contact-status.is-success { color: #126d3a; }
.legal-contact-status.is-error { color: #a22b2b; }

.legal-site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(20px, 4vw, 64px);
  border-top: 1px solid var(--legal-line);
  color: var(--legal-muted);
  font-size: 0.9rem;
}

.legal-site-footer p {
  margin: 0;
}

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

  .legal-navigation {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .support-contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .legal-site-header,
  .legal-site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .legal-site-actions {
    justify-content: flex-start;
  }

  .legal-brand img {
    width: 76px;
  }

  .legal-layout {
    width: min(100% - 24px, 1180px);
    margin-top: 22px;
  }

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

  .legal-document {
    padding: 24px 20px;
    border-radius: 18px;
  }
}

@media print {
  body {
    background: #fff;
    font-size: 11pt;
  }

  .legal-site-header,
  .legal-navigation,
  .legal-site-footer {
    display: none;
  }

  .legal-layout {
    display: block;
    width: 100%;
    margin: 0;
  }

  .legal-document {
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  a {
    color: inherit;
  }
}
