:root {
  --legal-ink: #101827;
  --legal-muted: #5e6979;
  --legal-line: #dce2e9;
  --legal-paper: #ffffff;
  --legal-bg: #f4f7fb;
  --legal-navy: #08111e;
  --legal-lime: #8df02d;
  --legal-green: #57bb25;
}

.legal-body {
  margin: 0;
  color: var(--legal-ink);
  background: var(--legal-bg);
  font-family: Aptos, "Segoe UI", system-ui, sans-serif;
  line-height: 1.65;
}

.legal-header {
  color: #fff;
  background: linear-gradient(135deg, #060c15, #132233);
  border-bottom: 4px solid var(--legal-lime);
}

.legal-header-inner,
.legal-main,
.legal-footer-inner {
  width: min(100% - 40px, 920px);
  margin-inline: auto;
}

.legal-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 82px;
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
}

.legal-brand img {
  width: 108px;
  height: auto;
}

.legal-back {
  color: #d9e2ee;
  text-decoration: none;
  font-weight: 700;
}

.legal-back:hover,
.legal-back:focus-visible {
  color: var(--legal-lime);
}

.legal-main {
  padding-block: 64px 80px;
}

.legal-document {
  background: var(--legal-paper);
  border: 1px solid var(--legal-line);
  border-radius: 20px;
  padding: clamp(28px, 5vw, 64px);
  box-shadow: 0 24px 70px rgba(18, 32, 52, 0.1);
}

.legal-kicker {
  color: #438f20;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 850;
}

.legal-document h1 {
  margin: 10px 0 8px;
  font-size: clamp(2.25rem, 6vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.legal-updated {
  color: var(--legal-muted);
  margin-bottom: 42px;
}

.legal-document h2 {
  margin: 42px 0 12px;
  font-size: 1.45rem;
  line-height: 1.25;
}

.legal-document h3 {
  margin: 26px 0 8px;
  font-size: 1.08rem;
}

.legal-document p,
.legal-document li {
  color: #3e4959;
}

.legal-document ul,
.legal-document ol {
  padding-left: 1.35rem;
}

.legal-document li + li {
  margin-top: 9px;
}

.legal-document a {
  color: #276f12;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-callout {
  margin: 28px 0;
  padding: 20px 22px;
  background: #f0f9e9;
  border-left: 4px solid var(--legal-green);
  border-radius: 0 12px 12px 0;
}

.legal-table-wrap {
  overflow-x: auto;
  margin: 24px 0;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

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

.legal-table th {
  background: #eef3f8;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  padding-top: 38px;
  margin-top: 48px;
  border-top: 1px solid var(--legal-line);
}

.legal-nav a {
  font-weight: 750;
}

.legal-footer {
  color: #b8c3d1;
  background: var(--legal-navy);
}

.legal-footer-inner {
  padding-block: 28px;
  font-size: 0.82rem;
}

.legal-consent {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  color: #536073;
  font-size: 0.78rem;
  line-height: 1.45;
}

.legal-consent input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: #58bd27;
}

.legal-consent a {
  color: #397d1b;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-consent-error {
  grid-column: 2;
  min-height: 1em;
  color: #b42318;
}

.cookie-banner[hidden],
.cookie-settings[hidden] {
  display: none;
}

.cookie-banner {
  position: fixed;
  z-index: 1000;
  left: 50%;
  bottom: 22px;
  width: min(1120px, calc(100% - 48px));
  color: #eef3f8;
  background: #0b1523;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "title actions"
    "text actions";
  column-gap: 32px;
  align-items: center;
}

.cookie-banner h2,
.cookie-settings h2 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.cookie-banner h2 {
  grid-area: title;
}

.cookie-banner p,
.cookie-settings p {
  margin: 0;
  color: #b9c5d4;
  font-size: 0.86rem;
}

.cookie-banner p {
  grid-area: text;
  max-width: 690px;
}

.cookie-banner a {
  color: var(--legal-lime);
  text-decoration: underline;
}

.cookie-banner .cookie-actions {
  grid-area: actions;
  flex-wrap: nowrap;
  margin-top: 0;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.cookie-button {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  color: #fff;
  background: transparent;
  cursor: pointer;
  font-weight: 750;
}

.cookie-button-primary {
  color: #07110c;
  border-color: var(--legal-lime);
  background: var(--legal-lime);
}

.cookie-settings {
  position: fixed;
  z-index: 1001;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(3, 8, 15, 0.74);
}

.cookie-settings-card {
  width: min(520px, 100%);
  color: #eef3f8;
  background: #0b1523;
  border-radius: 18px;
  padding: 26px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.48);
}

.cookie-option {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 20px;
  padding: 17px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.cookie-option strong {
  font-size: 0.92rem;
}

.cookie-option small {
  grid-column: 1;
  color: #aebaca;
}

.cookie-option input {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  width: 20px;
  height: 20px;
  accent-color: var(--legal-lime);
}

.cookie-preferences-link {
  cursor: pointer;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
}

.site-footer-links {
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .legal-header-inner {
    min-height: 72px;
  }

  .legal-brand span {
    display: none;
  }

  .legal-main {
    width: min(100% - 24px, 920px);
    padding-block: 24px 48px;
  }

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

  .cookie-banner {
    left: 12px;
    bottom: 12px;
    width: calc(100% - 24px);
    display: block;
    transform: none;
  }

  .cookie-banner .cookie-actions {
    flex-wrap: wrap;
    margin-top: 18px;
  }
}

@media (min-width: 601px) and (max-width: 980px) {
  .cookie-banner {
    width: min(560px, calc(100% - 40px));
    display: block;
  }

  .cookie-banner .cookie-actions {
    flex-wrap: wrap;
    margin-top: 18px;
  }
}
