.legal-page {
  min-height: 100svh;
  background: var(--color-dark-bg);
}

.legal-main {
  max-width: min(980px, calc(100% - 48px));
  margin: 0 auto;
  padding: 48px 0 72px;
}

.footer__container {
  max-width: var(--container-width);
	margin: 0 auto;
	padding: 0 var(--container-padding);
}

.legal-main h1 {
  font-size: clamp(32px, 5.5vw, 58px);
  line-height: 1.08;
  margin: 0 0 12px;
}

.legal-meta {
  color: var(--color-gray-300);
  font-size: 14px;
  margin-bottom: 24px;
}

.legal-card {
  border: 0.5px solid rgba(255, 255, 255, 0.4);
  padding: 24px;
  background: rgba(13, 13, 13, 0.7);
}

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

.legal-card h2 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.2;
}

.legal-card p,
.legal-card li {
  color: var(--color-gray-300);
  font-size: 16px;
  line-height: 1.6;
}

.legal-card ul {
  margin: 10px 0 0 20px;
  padding: 0;
}

.legal-inline-links {
  margin-top: 16px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--color-gray-200);
}

/* ============================================
   Footer
   ============================================ */
.footer {
	background-color: var(--color-dark-bg);
	padding: 60px 0;
}

.footer__container {
	max-width: var(--container-width);
	margin: 0 auto;
	padding: 0 var(--container-padding);
}

.footer__top {
	display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    column-gap: 24px;
}

.footer__logo {
	display: flex;
	align-items: center;
	transition: transform var(--transition);
}

.footer__logo:hover {
	transform: scale(1.03);
}

.footer__logo img {
	width: 200px;
	height: 40px;
}

.footer__nav {
	display: flex;
	gap: 32px;
}

.footer__nav a {
	position: relative;
	color: var(--color-white);
	font-size: 14px;
	font-weight: 300;
	line-height: 1;
	transition: color var(--transition);
}

/* Active footer nav item - use ::after for bold text to prevent layout shift */
.footer__nav a.is-active {
	color: transparent;
}

.footer__nav a.is-active::after {
	content: attr(data-text);
	position: absolute;
	left: 0;
	top: 0;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 1px;
	color: var(--color-white);
}

.footer__social {
	display: none!important;
    gap: 16px;
    justify-self: end;
}

.footer__social-link {
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform var(--transition);
}

.footer__social-link img {
	width: 20px;
	height: 20px;
}

.footer__social-link:hover {
	transform: scale(1.3);
}

.footer__bottom {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 24px;
	padding-top: 60px;
	border-top: 0.5px dashed rgba(255, 255, 255, 0.5);
}

.footer__copyright {
	color: var(--color-white);
	font-size: 14px;
    justify-self: center;
}

.footer__legal {
	display: flex;
    width: auto;
    justify-content: center;
    align-items: baseline;
    gap: 24px;
}

.footer__legal a, .footer__legal span {
	color: var(--color-white);
	font-size: 14px;
	transition: color var(--transition);
}

.footer__company-group {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	text-align: center;
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

.footer__company {
	margin: 0;
	color: var(--color-gray-300);
	font-size: 14px;
	line-height: 2.1;
	letter-spacing: 0.2px;
	white-space: normal;
	overflow-wrap: anywhere;
	word-break: normal;
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

.footer__company > span {
	color: var(--color-gray-100);
}

.footer__company a {
	color: var(--color-white);
	text-decoration: underline;
}

.footer__company-sub {
	margin: 0;
	color: var(--color-gray-300);
	font-size: 14px;
	line-height: 3;
	letter-spacing: 0.2px;
	white-space: normal;
	overflow-wrap: anywhere;
	word-break: normal;
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

.footer__company-sub a {
	color: var(--color-white);
	text-decoration: underline;
}
.footer__meta {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
}

.footer__brand {
    display: flex;
    align-items: center;
    justify-self: start;
    max-width: 100%;
}

.cookie-consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1100;
  border: 0.5px solid rgba(255, 255, 255, 0.35);
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(4px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

.cookie-consent__content {
  padding: 16px;
}

.cookie-consent__title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-white);
}

.cookie-consent__copy {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-gray-300);
}

.cookie-consent__actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-consent__actions .btn-cta {
  font-size: 12px;
  line-height: 12px;
  padding: 10px 12px;
}

.cookie-consent__link {
  color: var(--color-gray-200);
  text-decoration: underline;
}

@media (min-width: 900px) {
  .cookie-consent {
    left: auto;
    right: 24px;
    bottom: 24px;
    max-width: 560px;
  }
}

@media (max-width: 768px) {
  .footer__top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    text-align: center;
  }

  .footer__brand {
    align-items: center;
    max-width: 100%;
    text-align: center;
  }

  .footer__meta {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .footer__social {
    justify-self: center;
  }

  .footer__company {
    white-space: normal;
    text-align: center;
  }

  .footer__company-sub {
    white-space: normal;
    text-align: center;
  }

  .footer__legal {
    flex-wrap: wrap;
    justify-content: center;
  }
}
