/* Cookie notice and policy pages */

.cookie-banner[hidden] {
  display: none !important;
}

/* Keep the refreshed brand mark in the existing header slot. */
.header-logo-new + img {
  display: none;
}

.cookie-banner {
  position: fixed;
  inset: auto 0 0;
  z-index: 200;
  padding: 1rem;
  background: rgba(4, 20, 43, 0.76);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.cookie-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.25rem 2rem;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 1.25rem 3.5rem 1.25rem 1.4rem;
  color: #e2e8f0;
  background: #07203f;
  border: 1px solid rgba(111, 235, 255, 0.32);
  border-radius: 1rem;
  box-shadow: 0 24px 70px rgba(4, 20, 43, 0.42);
}

.cookie-copy h2 {
  margin: 0;
  color: #fff;
  font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
}

.cookie-copy p {
  max-width: 760px;
  margin: 0.45rem 0 0;
  color: #cbd5e1;
  font-size: 0.875rem;
  line-height: 1.55;
}

.cookie-copy a,
.cookie-policy-link {
  color: #6febff;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.7rem;
}

.cookie-action {
  min-height: 44px;
  padding: 0.72rem 1.1rem;
  border: 1px solid rgba(111, 235, 255, 0.7);
  border-radius: 0.65rem;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}

.cookie-action:hover {
  transform: translateY(-1px);
}

.cookie-action-reject {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.cookie-action-accept {
  color: #04142b;
  background: linear-gradient(95deg, #6febff, #0095ff);
}

.cookie-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.cookie-close:hover {
  background: rgba(255, 255, 255, 0.16);
}

.legal-body {
  min-height: 100vh;
  background: #f8fafc;
}

.legal-header {
  background: #04142b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-header-inner,
.legal-footer-inner,
.legal-page {
  width: min(980px, calc(100% - 2.5rem));
  margin: 0 auto;
}

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

.legal-logo {
  display: inline-flex;
  align-items: center;
}

.legal-logo img {
  width: 184px;
  height: auto;
}

.legal-languages {
  display: flex;
  gap: 0.75rem;
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 700;
}

.legal-languages a:hover,
.legal-languages [aria-current="page"] {
  color: #6febff;
}

.legal-page {
  padding: 4.5rem 0 5.5rem;
}

.legal-kicker {
  margin: 0;
  color: #0072e3;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.legal-page h1 {
  max-width: 760px;
  margin: 0.75rem 0 0;
  color: #07203f;
  font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.legal-lead {
  max-width: 760px;
  margin: 1.4rem 0 0;
  color: #475569;
  font-size: 1.05rem;
  line-height: 1.75;
}

.legal-updated {
  display: inline-flex;
  margin-top: 1.25rem;
  padding: 0.4rem 0.7rem;
  color: #123660;
  background: #e7f7ff;
  border: 1px solid #baeaff;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 650;
}

.legal-card {
  margin-top: 3rem;
  padding: clamp(1.4rem, 4vw, 2.25rem);
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  box-shadow: 0 18px 45px -32px rgba(7, 32, 63, 0.35);
}

.legal-section + .legal-section {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid #e2e8f0;
}

.legal-section h2 {
  margin: 0;
  color: #07203f;
  font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
  font-size: 1.45rem;
  font-weight: 650;
}

.legal-section h3 {
  margin: 1.4rem 0 0;
  color: #0b2a4a;
  font-size: 1rem;
  font-weight: 700;
}

.legal-section p,
.legal-section li,
.legal-table td,
.legal-table th {
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.75;
}

.legal-section p {
  margin: 0.85rem 0 0;
}

.legal-section ul {
  margin: 0.85rem 0 0;
  padding-left: 1.25rem;
  list-style: disc;
}

.legal-section a {
  color: #0072e3;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-table-wrap {
  margin-top: 1.2rem;
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 0.9rem;
}

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

.legal-table th,
.legal-table td {
  padding: 0.95rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #e2e8f0;
}

.legal-table th {
  color: #0b2a4a;
  background: #f1f5f9;
  font-size: 0.82rem;
  font-weight: 700;
}

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

.legal-note {
  margin-top: 1.2rem;
  padding: 1rem 1.1rem;
  color: #123660;
  background: #eef9ff;
  border-left: 3px solid #0095ff;
  border-radius: 0.65rem;
  font-size: 0.92rem;
  line-height: 1.65;
}

.legal-preference-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 1.2rem;
  padding: 0.75rem 1.15rem;
  color: #04142b;
  background: linear-gradient(95deg, #6febff, #0095ff);
  border: 0;
  border-radius: 0.7rem;
  font-size: 0.9rem;
  font-weight: 750;
  cursor: pointer;
}

.legal-footer {
  padding: 2.2rem 0;
  color: #94a3b8;
  background: #04142b;
}

.legal-footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  font-size: 0.82rem;
  line-height: 1.65;
}

.legal-footer a,
.legal-footer button {
  color: #cbd5e1;
}

.legal-footer a:hover,
.legal-footer button:hover {
  color: #6febff;
}

@media (max-width: 820px) {
  .cookie-panel {
    grid-template-columns: 1fr;
  }

  .cookie-actions {
    justify-content: stretch;
  }

  .cookie-action {
    flex: 1 1 190px;
  }
}

@media (max-width: 560px) {
  .cookie-banner {
    padding: 0.65rem;
  }

  .cookie-panel {
    gap: 1rem;
    max-height: calc(100vh - 1.3rem);
    padding: 1.15rem 1rem;
    overflow-y: auto;
    border-radius: 0.85rem;
  }

  .cookie-copy {
    padding-right: 2.25rem;
  }

  .cookie-close {
    top: 0.7rem;
    right: 0.7rem;
  }

  .cookie-action {
    flex-basis: 100%;
    width: 100%;
  }

  .legal-header-inner,
  .legal-footer-inner,
  .legal-page {
    width: min(100% - 1.5rem, 980px);
  }

  .legal-logo img {
    width: 150px;
  }

  .legal-page {
    padding-top: 3.25rem;
  }
}
