/* Shared styling for the legal pages (privacy policy, terms).
   Reuses the design tokens from the main site stylesheet. */

.legal-page {
  --legal-max: 900px;
}

.legal-page .legal-wrap {
  width: 100%;
  max-width: 1620px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 1024px) {
  .legal-page .legal-wrap {
    padding: 0 32px;
  }
}

.legal-page .legal-inner {
  max-width: var(--legal-max);
}

.legal-page h1 {
  font-size: 40px;
  font-weight: 600;
  line-height: 1.15;
  color: var(--color-brand-off-white);
  margin: 0 0 16px;
}

@media (min-width: 1024px) {
  .legal-page h1 {
    font-size: 64px;
    line-height: 1.2;
  }
}

.legal-page h2 {
  font-size: 26px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-brand-off-white);
  margin: 56px 0 16px;
}

@media (min-width: 1024px) {
  .legal-page h2 {
    font-size: 34px;
    margin: 72px 0 20px;
  }
}

.legal-page h3 {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-brand-off-white);
  margin: 32px 0 10px;
}

.legal-page p,
.legal-page li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-brand-off-white);
  opacity: 0.92;
}

@media (min-width: 1024px) {
  .legal-page p,
  .legal-page li {
    font-size: 18px;
  }
}

.legal-page p {
  margin: 0 0 18px;
}

.legal-page ul,
.legal-page ol {
  margin: 0 0 18px;
  padding-left: 26px;
}

.legal-page li {
  margin-bottom: 8px;
}

.legal-page a {
  color: var(--color-brand-yellow);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-page a:hover {
  opacity: 0.85;
}

.legal-page strong {
  font-weight: 600;
  opacity: 1;
}

.legal-page .legal-meta {
  font-size: 15px;
  opacity: 0.75;
  margin-bottom: 40px;
}

.legal-page .legal-lede {
  font-size: 18px;
  line-height: 1.65;
  opacity: 0.95;
  margin-bottom: 8px;
}

@media (min-width: 1024px) {
  .legal-page .legal-lede {
    font-size: 22px;
  }
}

/* Callout box for the "who we are" / controller details */
.legal-page .legal-card {
  background: var(--color-brand-off-white);
  color: var(--color-brand-dark-green);
  border-radius: 20px;
  padding: 24px 28px;
  margin: 24px 0 8px;
}

.legal-page .legal-card p,
.legal-page .legal-card li,
.legal-page .legal-card a {
  color: var(--color-brand-dark-green);
  opacity: 1;
}

.legal-page .legal-card p:last-child {
  margin-bottom: 0;
}

.legal-page .legal-card a {
  font-weight: 600;
}

/* Tables (used for cookies / processors / retention) */
.legal-page .legal-table-scroll {
  overflow-x: auto;
  margin: 0 0 24px;
  -webkit-overflow-scrolling: touch;
}

.legal-page table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 15px;
}

.legal-page th,
.legal-page td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(240, 249, 245, 0.22);
  color: var(--color-brand-off-white);
  line-height: 1.55;
}

.legal-page th {
  font-weight: 600;
  border-bottom-width: 2px;
  white-space: nowrap;
}

.legal-page td code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  background: rgba(240, 249, 245, 0.12);
  padding: 2px 6px;
  border-radius: 5px;
  white-space: nowrap;
}

/* Placeholder markers for details that must be filled in before publishing.
   Remove this rule (and the .legal-todo spans) once the real values are in. */
.legal-page .legal-todo {
  background: #ffb405;
  color: #1c604c;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.92em;
}

/* Back link at the top */
.legal-page .legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  margin-bottom: 28px;
  text-decoration: none;
}

.legal-page .legal-back:hover {
  text-decoration: underline;
}

/* Language switcher in the header */
.legal-page .legal-langs {
  display: flex;
  gap: 8px;
  color: #fff;
}

.legal-page .legal-langs a {
  padding: 8px;
  color: #fff;
  text-decoration: none;
  font-weight: 400;
}

.legal-page .legal-langs a[aria-current="page"] {
  font-weight: 700;
  text-decoration: underline;
}

/* Footer */
.legal-page .legal-footer {
  border-top: 1px solid rgba(240, 249, 245, 0.2);
  margin-top: 96px;
}

.legal-page .legal-footer .legal-wrap {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-top: 28px;
  padding-bottom: 28px;
}

@media (min-width: 768px) {
  .legal-page .legal-footer .legal-wrap {
    flex-direction: row;
    gap: 16px;
  }
}

.legal-page .legal-footer p {
  margin: 0;
  font-size: 16px;
  text-align: center;
}

@media (min-width: 1024px) {
  .legal-page .legal-footer p,
  .legal-page .legal-footer a {
    font-size: 20px;
  }
}

.legal-page .legal-footer nav {
  display: flex;
  gap: 24px;
}

.legal-page .legal-footer a {
  color: var(--color-brand-off-white);
  text-decoration: none;
  font-size: 16px;
}

.legal-page .legal-footer a:hover {
  color: var(--color-brand-yellow);
}
