.legal-page {
  background:
    radial-gradient(circle at 84% 6%, rgba(33, 103, 221, 0.14), transparent 26rem),
    #f5f8fc;
  color: #071a36;
}

.legal-hero {
  padding: clamp(8.5rem, 14vw, 11rem) 0 4.5rem;
  background:
    linear-gradient(120deg, rgba(5, 25, 57, 0.98), rgba(10, 64, 132, 0.94)),
    #071a36;
  color: #fff;
}

.legal-hero .container {
  max-width: 1120px;
}

.legal-kicker,
.legal-updated {
  margin: 0;
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.legal-kicker {
  color: #8fbbff;
}

.legal-hero h1 {
  max-width: 900px;
  margin: 1rem 0 1.25rem;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.legal-hero-copy {
  max-width: 780px;
  margin: 0 0 1.6rem;
  color: #d8e5f7;
  font-size: clamp(1.04rem, 2vw, 1.3rem);
  line-height: 1.65;
}

.legal-updated {
  display: inline-flex;
  gap: 0.55rem;
  align-items: center;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.legal-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
  max-width: 1180px;
  padding-top: clamp(3rem, 7vw, 5rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

.legal-index {
  position: sticky;
  top: 9rem;
  padding: 1.4rem;
  border: 1px solid #dbe6f4;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 45px rgba(7, 26, 54, 0.08);
}

.legal-index strong {
  display: block;
  margin-bottom: 0.9rem;
  font-size: 0.78rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.legal-index nav {
  display: grid;
  gap: 0.28rem;
}

.legal-index a {
  padding: 0.62rem 0.7rem;
  border-radius: 10px;
  color: #35506f;
  font-size: 0.92rem;
  text-decoration: none;
}

.legal-index a:hover,
.legal-index a:focus-visible {
  background: #edf4ff;
  color: #075bd8;
}

.legal-index .legal-index-related {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid #e4ebf4;
}

.legal-index .legal-index-related a {
  color: #075bd8;
  font-weight: 700;
}

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

.legal-summary,
.legal-card,
.legal-notice {
  border: 1px solid #dce6f3;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(7, 26, 54, 0.07);
}

.legal-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-bottom: 1.4rem;
  background: #dce6f3;
}

.legal-summary div {
  padding: 1.4rem;
  background: #fff;
}

.legal-summary small {
  display: block;
  margin-bottom: 0.35rem;
  color: #527091;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.legal-summary strong,
.legal-summary a {
  color: #071a36;
  font-size: 0.95rem;
  line-height: 1.45;
}

.legal-card {
  margin-top: 1.4rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  scroll-margin-top: 9rem;
}

.legal-card h2 {
  margin: 0 0 1.1rem;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  letter-spacing: -0.035em;
}

.legal-card h3 {
  margin: 1.55rem 0 0.65rem;
  font-size: 1.08rem;
}

.legal-card p,
.legal-card li,
.legal-notice p {
  color: #36516f;
  font-size: 0.98rem;
  line-height: 1.75;
}

.legal-card p:first-of-type {
  margin-top: 0;
}

.legal-card p:last-child,
.legal-notice p:last-child {
  margin-bottom: 0;
}

.legal-card ul,
.legal-card ol {
  display: grid;
  gap: 0.5rem;
  padding-left: 1.25rem;
}

.legal-card a,
.legal-notice a {
  color: #075bd8;
  font-weight: 700;
}

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

.legal-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  background: #fff;
}

.legal-table th,
.legal-table td {
  padding: 1rem;
  border-bottom: 1px solid #e5edf7;
  color: #36516f;
  text-align: left;
  vertical-align: top;
  line-height: 1.55;
}

.legal-table th {
  background: #0b2c5b;
  color: #fff;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

.legal-table td:first-child {
  color: #071a36;
  font-weight: 750;
}

.legal-notice {
  margin-top: 1.4rem;
  padding: 1.5rem;
  border-color: #bcd3f5;
  background: linear-gradient(135deg, #edf5ff, #fff);
}

.legal-notice strong {
  display: block;
  margin-bottom: 0.35rem;
  color: #075bd8;
}

.legal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.legal-preferences-button {
  appearance: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: #075bd8;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.webcar-consent-banner {
  position: fixed;
  z-index: 10050;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  display: none;
  max-width: 980px;
  margin: 0 auto;
  padding: 1.35rem;
  border: 1px solid rgba(146, 181, 230, 0.45);
  border-radius: 24px;
  background: rgba(5, 25, 57, 0.98);
  color: #fff;
  box-shadow: 0 28px 90px rgba(0, 14, 36, 0.42);
}

.webcar-consent-banner.is-visible {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.25rem;
  align-items: center;
}

.webcar-consent-banner h2 {
  margin: 0 2.5rem 0.45rem 0;
  font-size: 1.18rem;
}

.webcar-consent-banner p {
  margin: 0;
  color: #c8d8ee;
  font-size: 0.9rem;
  line-height: 1.55;
}

.webcar-consent-banner p a {
  color: #fff;
  font-weight: 700;
}

.webcar-consent-close {
  position: absolute;
  top: 0.85rem;
  right: 0.9rem;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
}

.webcar-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
}

.webcar-consent-actions button,
.webcar-consent-dialog button {
  min-height: 2.9rem;
  padding: 0.72rem 1rem;
  border: 1px solid #79a9f2;
  border-radius: 12px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
}

.webcar-consent-actions .is-primary,
.webcar-consent-dialog .is-primary {
  border-color: #c4430a;
  background: #c4430a;
}

.webcar-consent-dialog {
  width: min(680px, calc(100% - 2rem));
  max-height: calc(100vh - 2rem);
  padding: 0;
  border: 0;
  border-radius: 26px;
  background: #fff;
  color: #071a36;
  box-shadow: 0 30px 120px rgba(0, 14, 36, 0.5);
}

.webcar-consent-dialog::backdrop {
  background: rgba(1, 12, 30, 0.72);
  backdrop-filter: blur(5px);
}

.webcar-consent-dialog-inner {
  padding: clamp(1.4rem, 4vw, 2.2rem);
}

.webcar-consent-dialog h2 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  letter-spacing: -0.04em;
}

.webcar-consent-dialog > div > p {
  margin: 0 0 1.2rem;
  color: #4d6784;
  line-height: 1.6;
}

.webcar-consent-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  border-top: 1px solid #e3ebf5;
}

.webcar-consent-option strong,
.webcar-consent-option small {
  display: block;
}

.webcar-consent-option small {
  margin-top: 0.25rem;
  color: #5d7590;
  line-height: 1.45;
}

.webcar-consent-option input {
  width: 1.35rem;
  height: 1.35rem;
  accent-color: #075bd8;
}

.webcar-consent-option em {
  color: #15784b;
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
}

.webcar-consent-dialog .webcar-consent-actions {
  margin-top: 1.1rem;
}

.webcar-consent-dialog .webcar-consent-actions button {
  border-color: #9bb7dc;
  color: #071a36;
}

.webcar-consent-dialog .webcar-consent-actions .is-primary {
  border-color: #075bd8;
  background: #075bd8;
  color: #fff;
}

.footer-cookie-link {
  appearance: none;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: inherit;
  text-decoration: none;
  cursor: pointer;
  padding: 0;
}

.footer-cookie-link:hover,
.footer-cookie-link:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

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

  .legal-index {
    position: static;
  }

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

  .webcar-consent-banner.is-visible {
    grid-template-columns: 1fr;
  }

  .webcar-consent-actions {
    justify-content: stretch;
  }

  .webcar-consent-actions button {
    flex: 1 1 9rem;
  }
}

@media (max-width: 560px) {
  .legal-hero {
    padding-top: 7.5rem;
  }

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

  .webcar-consent-banner {
    right: 0.55rem;
    bottom: 0.55rem;
    left: 0.55rem;
    padding: 1.1rem;
    border-radius: 20px;
  }

  .webcar-consent-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}
