:root {
  --navy: #061640;
  --navy-2: #0b2158;
  --cyan: #29d3c2;
  --cyan-2: #47e8d7;
  --soft: #f5f8fc;
  --text: #1f2937;
  --muted: #667085;
  --line: #e4ebf5;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(6, 22, 64, .13);
  --container: min(940px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 92% 4%, rgba(41, 211, 194, .14), transparent 25rem),
    linear-gradient(180deg, #eef4fb 0, #fff 24rem);
  font-family: Inter, Manrope, Montserrat, Arial, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.site-header {
  background: rgba(4, 17, 47, .97);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 12px 30px rgba(2, 10, 31, .12);
}

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

.brand img {
  width: 218px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 20px;
  color: var(--navy);
  background: var(--cyan);
  border-radius: 999px;
  font-weight: 800;
  transition: transform .2s ease, background .2s ease;
}

.back-link:hover {
  background: var(--cyan-2);
  transform: translateY(-2px);
}

.legal-hero {
  padding: 76px 0 38px;
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(6, 22, 64, .99), rgba(11, 33, 88, .94)),
    url("hero-bg-premium.avif") center/cover;
}

.eyebrow {
  display: inline-flex;
  padding: 7px 13px;
  color: var(--navy);
  background: var(--cyan);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.legal-hero h1 {
  max-width: 780px;
  margin: 19px 0 12px;
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1.05;
  letter-spacing: -.04em;
}

.legal-hero p {
  max-width: 720px;
  margin: 0;
  color: #d8e5fb;
  font-size: 18px;
}

.legal-main {
  padding: 52px 0 84px;
}

.legal-card {
  padding: clamp(26px, 5vw, 56px);
  background: rgba(255, 255, 255, .96);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.updated {
  margin: 0 0 34px;
  padding: 12px 16px;
  color: var(--muted);
  background: var(--soft);
  border-left: 4px solid var(--cyan);
  border-radius: 8px 14px 14px 8px;
  font-size: 14px;
}

.legal-card section + section {
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.legal-card h2 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: clamp(23px, 3vw, 30px);
  line-height: 1.25;
}

.legal-card h3 {
  margin: 22px 0 8px;
  color: var(--navy-2);
  font-size: 19px;
}

.legal-card p,
.legal-card li {
  color: #48566a;
}

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

.legal-card li + li {
  margin-top: 8px;
}

.legal-card a {
  color: #087f75;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.data-table-wrap {
  max-width: 100%;
  margin: 22px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(6, 22, 64, .07);
}

.data-table-wrap:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

.data-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  background: var(--white);
  font-size: 14px;
  line-height: 1.55;
}

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

.data-table th:last-child,
.data-table td:last-child {
  border-right: 0;
}

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

.data-table th {
  color: var(--white);
  background: var(--navy);
  font-size: 13px;
  letter-spacing: .02em;
}

.data-table td {
  color: #48566a;
}

.data-table tbody tr:nth-child(even) td {
  background: var(--soft);
}

.data-table code {
  color: var(--navy-2);
  font-weight: 800;
}

.notice {
  margin-top: 26px;
  padding: 20px 22px;
  color: #23314b;
  background: #eafbf8;
  border: 1px solid #b7eee7;
  border-radius: 18px;
}

.notice strong {
  color: var(--navy);
}

.site-footer {
  padding: 34px 0;
  color: #c8d3ea;
  background: #04112f;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.footer-row img {
  width: 170px;
}

.footer-copy {
  text-align: right;
  font-size: 14px;
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
}

.footer-links a {
  color: var(--cyan);
  font-weight: 800;
}

.privacy-consent[hidden] {
  display: none;
}

.privacy-consent {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 220;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 28px;
  width: min(1180px, calc(100% - 32px));
  padding: 24px 28px;
  color: var(--white);
  background: rgba(4, 17, 47, .98);
  border: 1px solid rgba(71, 232, 215, .34);
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(2, 10, 31, .46);
  backdrop-filter: blur(16px);
  transform: translateX(-50%);
}

.privacy-consent h2 {
  margin: 0 0 8px;
  color: var(--white);
  font-size: 24px;
  line-height: 1.25;
}

.privacy-consent p {
  margin: 0;
  color: #dbe7ff;
  font-size: 16px;
  line-height: 1.6;
}

.privacy-consent a {
  color: var(--cyan);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.privacy-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin: 0;
}

.privacy-action {
  min-height: 54px;
  padding: 12px 28px;
  color: var(--navy);
  background: var(--cyan);
  border: 1px solid var(--cyan);
  border-radius: 999px;
  font: inherit;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
}

.privacy-action:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 3px;
}

.error-main {
  min-height: calc(100vh - 82px);
  display: grid;
  place-items: center;
  padding: 52px 0;
  color: var(--white);
  background:
    radial-gradient(circle at 75% 20%, rgba(41, 211, 194, .22), transparent 24rem),
    linear-gradient(145deg, #03102f, #0b2158 58%, #061640);
}

.error-card {
  max-width: 760px;
  padding: clamp(32px, 6vw, 70px);
  text-align: center;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 34px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .25);
  backdrop-filter: blur(14px);
}

.error-code {
  display: block;
  color: var(--cyan);
  font-size: clamp(92px, 20vw, 180px);
  font-weight: 950;
  line-height: .8;
  letter-spacing: -.09em;
}

.error-card h1 {
  margin: 28px 0 10px;
  font-size: clamp(34px, 6vw, 54px);
  line-height: 1.1;
}

.error-card p {
  max-width: 560px;
  margin: 0 auto;
  color: #d8e5fb;
  font-size: 18px;
}

.error-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 900;
}

.button-primary {
  color: var(--navy);
  background: var(--cyan);
}

.button-secondary {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, .32);
  background: rgba(255, 255, 255, .07);
}

.button:hover {
  transform: translateY(-2px);
}

@media (max-width: 680px) {
  :root {
    --container: min(100% - 28px, 940px);
  }

  .site-nav {
    min-height: 72px;
  }

  .brand img {
    width: 174px;
  }

  .back-link {
    min-height: 42px;
    padding: 9px 14px;
    font-size: 13px;
  }

  .legal-hero {
    padding: 54px 0 30px;
  }

  .legal-hero p {
    font-size: 16px;
  }

  .legal-main {
    padding: 30px 0 58px;
  }

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

  .footer-row,
  .footer-links {
    justify-content: flex-start;
  }

  .footer-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-copy {
    text-align: left;
  }

  .error-main {
    min-height: calc(100vh - 72px);
  }

  .privacy-consent {
    grid-template-columns: 1fr;
    gap: 16px;
    bottom: 12px;
    width: calc(100% - 24px);
    padding: 18px;
    border-radius: 20px;
  }

  .privacy-action {
    width: 100%;
  }
}
