.cookie-banner {
  position: fixed;
  inset: 0;
  z-index: 1000;
  max-width: none;
  width: 100%;
  height: 100%;
  background: rgba(8, 10, 13, 0.72);
  border: none;
  box-shadow: none;
  padding: 1.25rem;
  display: none;
  place-items: center;
  backdrop-filter: blur(4px);
}

.cookie-banner.is-visible {
  display: grid;
}

.cookie-banner-dialog {
  width: min(100%, 520px);
  background: #12151c;
  border: 1px solid var(--line);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  padding: 1.5rem 1.5rem 1.35rem;
}

.cookie-banner h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.55rem;
}

.cookie-banner p {
  color: var(--muted-2);
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 0.85rem;
}

.cookie-banner a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cookie-actions .btn {
  font-size: 13px;
  padding: 10px 14px;
}

.cookie-settings {
  display: none;
  margin: 0.75rem 0 1rem;
  border-top: 1px solid var(--line-soft);
  padding-top: 0.85rem;
}

.cookie-settings.is-open {
  display: grid;
  gap: 0.75rem;
}

.cookie-option {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem 1rem;
  align-items: start;
}

.cookie-option strong {
  display: block;
  font-size: 13px;
  margin-bottom: 2px;
}

.cookie-option span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.cookie-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
}

.consent-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted-2);
}

.consent-check input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--accent);
}

.consent-check a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
  text-align: right;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  justify-content: flex-end;
}

.footer-links a {
  color: #6a6a64;
  font-size: 12px;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-meta {
  font-size: 11px;
  color: #3f3f3b;
  max-width: 420px;
}

.legal-page {
  padding: 120px 0 80px;
}

.legal-page h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0.4rem 0 1rem;
}

.legal-page .section-lead {
  max-width: 720px;
  margin-bottom: 2rem;
}

.legal-content {
  max-width: 820px;
  display: grid;
  gap: 1.5rem;
  color: var(--muted-2);
  font-size: 15px;
  line-height: 1.65;
}

.legal-content h2 {
  font-family: var(--font-display);
  color: var(--fg);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.legal-content ul {
  list-style: disc;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.35rem;
}

.legal-content a {
  color: var(--accent);
}

@media (max-width: 720px) {
  .cookie-banner {
    padding: 0.85rem;
  }

  .footer-legal,
  .footer-links {
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
  }
}
