/* =============================================
   Legal pages — Privacy, Terms, Cookies
   ============================================= */

body.page-legal {
  background: #ffffff;
}

body.page-legal .header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: transparent;
  box-shadow: none;
}

body.page-legal .header__nav {
  background: var(--header-nav-bg-solid);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* ---- Hero ---- */

.legal-hero {
  padding: clamp(3.5rem, 7vw, 5rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  background: #0a0a0a;
  color: #ffffff;
}

.legal-hero__inner {
  max-width: 820px;
}

.legal-hero__eyebrow {
  margin: 0 0 0.875rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.legal-hero__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.legal-hero__meta {
  margin: 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
}

/* ---- Content ---- */

.legal-content {
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 clamp(4rem, 7vw, 5rem);
  background: #f4f4f5;
}

.legal-content__inner {
  max-width: 820px;
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.legal-nav__link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.875rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: #666666;
  background: #f4f4f5;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.legal-nav__link:hover {
  color: #111111;
  background: #ececec;
}

.legal-nav__link.is-active {
  color: #ffffff;
  background: #111111;
  border-color: #111111;
}

.legal-content__intro {
  margin: 0 0 2rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 1.0625rem;
  line-height: 1.8;
  color: #555555;
}

.legal-content__intro a {
  color: #111111;
  font-weight: 500;
}

.legal-section {
  margin-bottom: 2rem;
}

.legal-section:last-child {
  margin-bottom: 0;
}

.legal-section h2 {
  margin: 0 0 0.875rem;
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #111111;
}

.legal-section p,
.legal-section li {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: #555555;
}

.legal-section p {
  margin: 0 0 1rem;
}

.legal-section ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.legal-section li {
  margin-bottom: 0.5rem;
}

.legal-section a {
  color: #111111;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-section a:hover {
  color: #444444;
}

/* ---- Cookie table ---- */

.legal-table-wrap {
  overflow-x: auto;
  margin: 0 0 1rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
}

.legal-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.legal-table th,
.legal-table td {
  padding: 0.875rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.legal-table th {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #111111;
  background: #fafafa;
}

.legal-table td {
  color: #555555;
  line-height: 1.6;
}

.legal-table tr:last-child th,
.legal-table tr:last-child td {
  border-bottom: 0;
}

.legal-contact-box {
  margin-top: 0.5rem;
  padding: 1.5rem 1.75rem;
  border-radius: 14px;
  background: #fafafa;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.legal-contact-box h2 {
  margin-bottom: 0.75rem;
}

.legal-contact-box p {
  margin: 0;
}

@media (max-width: 767px) {
  .legal-content__inner {
    padding: 1.25rem;
    border-radius: 16px;
  }

  .legal-nav__link {
    font-size: 0.6875rem;
  }
}
