.legal-page {
  background: var(--content-background, #f8f8f8);
  min-height: 100vh;
  overflow-y: auto;
}

.legal-page__wrapper {
  min-height: 100vh;
  padding: 2rem 1rem 5rem;
  overflow-y: auto;
  position: relative;
}

.legal-page__card {
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  background: var(--card, #fff);
  border: 1px solid var(--border, rgba(17, 17, 17, 0.08));
  border-radius: 18px;
  box-shadow: 0 1px 2px rgba(17, 17, 17, 0.06);
  padding: 2rem 2.25rem;
  color: var(--foreground, #111);
  text-align: left;
}

.legal-page__header {
  position: relative;
  padding-right: 8rem;
}

.legal-page__brand {
  position: absolute;
  top: 0;
  right: 0;
}

.legal-page__brand a {
  display: inline-block;
  text-decoration: none;
  color: var(--main-text-color, #111);
  transition: opacity 0.2s;
  font-size: 1.5rem;
  font-weight: 300;
  font-family: "Montserrat", sans-serif;
  text-align: right;
}

.legal-page__brand a:hover {
  opacity: 0.8;
}

.legal-page__brand a strong {
  font-weight: 700;
}

.legal-page__eyebrow,
.legal-page__meta {
  color: var(--muted-foreground, #666);
  font-size: 0.875rem;
  line-height: 1.4;
  text-align: left;
}

.legal-page__header h1 {
  margin: 0.5rem 0 0.75rem;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.1;
  text-align: left;
}

.legal-page__actions {
  margin-top: 1rem;
  text-align: left;
}

.legal-page__section + .legal-page__section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border, rgba(17, 17, 17, 0.08));
}

.legal-page__section h2 {
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
}

.legal-page__section p {
  margin: 0.5rem 0 0;
  max-width: 48rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--foreground, #111);
  text-align: left;
}

.legal-page__list {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
  max-width: 48rem;
  text-align: left;
  list-style: disc;
}

.legal-page__list li {
  padding-left: 0.2rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--foreground, #111);
}

.legal-page__list li::marker {
  color: var(--muted-foreground, #666);
}

.legal-page__list li + li {
  margin-top: 0.625rem;
}

.legal-page__sublist {
  margin: 0.625rem 0 0;
  padding-left: 1.25rem;
  list-style: circle;
}

.legal-page__sublist li {
  font-size: 0.9375rem;
  line-height: 1.6;
}

.legal-page__sublist li + li {
  margin-top: 0.375rem;
}

.legal-page__footer {
  margin-top: 2rem;
  text-align: left;
}

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

.cookie-consent__banner {
  position: fixed;
  right: 0;
  bottom: 0;
  z-index: 1200;
  width: min(100%, 25rem);
  padding: 20px;
}

.cookie-consent__modal {
  position: fixed;
  inset: 0;
  z-index: 1190;
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cookie-consent__panel {
  width: 100%;
  max-width: 360px;
  margin-left: auto;
  background: #fff;
  color: #111;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 20px;
  box-shadow: inset 0 0 0 1px transparent, 0 1px 2px rgba(0, 0, 0, 0.2);
  padding: 16px;
  text-align: left;
}

.cookie-consent__panel--modal {
  position: relative;
  z-index: 2;
  width: min(100%, 360px);
  margin: 0;
}

.cookie-consent__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #666;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.cookie-consent__close:hover {
  background: rgba(17, 17, 17, 0.06);
  color: #111;
}

.cookie-consent__title {
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1;
}

.cookie-consent__description {
  margin: 0;
  color: rgba(4, 3, 1, 0.4);
  font-size: 14px;
  line-height: 1.15;
}

.cookie-consent__description a,
.legal-page__footer a {
  color: #111;
  text-decoration: underline;
}

.cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 12px;
}

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

.cookie-consent__backdrop {
  position: absolute;
  z-index: 25;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.cookie-consent__form {
  display: grid;
  gap: 0.875rem;
  margin-top: 1rem;
}

.cookie-consent__option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 18px;
  padding: 0.875rem 1rem;
}

.cookie-consent__option strong,
.cookie-consent__option small {
  display: block;
}

.cookie-consent__option small {
  margin-top: 0.25rem;
  color: #666;
  line-height: 1.4;
}

.cookie-consent__option--locked {
  background: #f6f6f6;
}

@media (max-width: 767px) {
  .legal-page__header {
    padding-right: 0;
  }

  .legal-page__brand {
    position: static;
    margin-bottom: 1rem;
    text-align: right;
  }

  .legal-page__brand a {
    font-size: 1.25rem;
  }

  .legal-page__card {
    padding: 1.5rem 1.25rem;
    border-radius: 16px;
  }

  .cookie-consent__actions > * {
    width: 100%;
  }

  .cookie-consent__banner {
    width: 100%;
    padding: 12px;
  }

  .cookie-consent__modal {
    padding: 12px;
  }

  .cookie-consent__panel {
    max-width: none;
  }
}
