/* ================================
  Legal Pages — Shared Styles
  Used by: privacy-policy.html, terms-and-conditions.html
================================ */

/* ================================
  Top Bar
================================ */
.legal-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 3rem;
  background-color: var(--background-color);
  color: var(--text-color);
}

.legal-top-bar-logo {
  height: 1.5rem;
  width: auto;
}

.legal-language-toggle {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-family: var(--font-tertiary);
  font-size: 0.875rem;
  font-weight: 500;
}

.legal-language-toggle a {
  text-decoration: none;
  color: var(--headline-text-color);
  padding: 0.25rem 0.5rem;
  border-radius: var(--border-radius-min);
  transition: background-color 0.2s ease;
}

.legal-language-toggle a:hover {
  background-color: var(--light-grey);
}

.legal-language-toggle a.is-active {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ================================
  Legal Content Container
================================ */
.legal-container {
  max-width: var(--main-container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding: 4rem 2rem 6rem;
  background-color: var(--background-color);
  color: var(--text-color);
}

/* ================================
  Translation Notice Banner
================================ */
.legal-notice-banner {
  max-width: var(--main-container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding: 1rem 2rem;
  background-color: var(--lightest-grey);
  border-left: 4px solid var(--grey);
  font-family: var(--font-tertiary);
  font-size: 0.875rem;
  color: var(--dark-grey);
  line-height: 1.5;
}

/* ================================
  Typography — Legal Pages
================================ */
.legal-page-title {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: clamp(2rem, calc(1rem + 4vw), 4rem);
  line-height: 1.1;
  color: var(--headline-text-color);
  margin-bottom: 1rem;
}

.legal-updated-date {
  font-family: var(--font-tertiary);
  font-size: 0.875rem;
  color: var(--grey);
  margin-bottom: 3rem;
}

.legal-section {
  margin-bottom: 2.5rem;
}

.legal-section-title {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: clamp(1.25rem, calc(0.875rem + 1.5vw), 1.75rem);
  line-height: 1.2;
  color: var(--headline-text-color);
  margin-bottom: 1rem;
}

.legal-subsection-title {
  font-family: var(--font-tertiary);
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.3;
  color: var(--headline-text-color);
  margin-bottom: 0.5rem;
  margin-top: 1.5rem;
}

.legal-body {
  font-family: var(--font-tertiary);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-color);
  margin-bottom: 0.75rem;
}

.legal-body a {
  color: var(--dark-grey);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-body a:hover {
  color: var(--black);
}

/* ================================
  Lists — Legal Pages
================================ */
.legal-list {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-list li {
  font-family: var(--font-tertiary);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-color);
  margin-bottom: 0.25rem;
}

.legal-list-ordered {
  list-style: decimal;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-list-ordered li {
  font-family: var(--font-tertiary);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-color);
  margin-bottom: 0.25rem;
}

/* ================================
  Placeholder Highlight
  Bracketed placeholders [like this] stand out
================================ */
.legal-placeholder {
  background-color: #fff3cd;
  padding: 0.125rem 0.25rem;
  border-radius: 2px;
  font-weight: 500;
}

/* ================================
  Responsive — Tablet & Mobile
================================ */
@media (width <= 1024px) {
  .legal-top-bar {
    padding: 1rem 1.5rem;
  }

  .legal-container {
    padding: 3rem 1.5rem 4rem;
  }

  .legal-notice-banner {
    margin-left: 1.5rem;
    margin-right: 1.5rem;
  }
}

@media (width <= 480px) {
  .legal-top-bar {
    padding: 1rem;
  }

  .legal-container {
    padding: 2rem 1rem 3rem;
  }

  .legal-notice-banner {
    margin-left: 1rem;
    margin-right: 1rem;
    font-size: 0.8125rem;
  }
}
