/* Privacy policy — long-form legal typography.
   Reuses tokens from /assets/brand.css and the header, container, logo and
   button rules from /styles.css. The two layout rules below used to live in
   /styles.css; they are only used by this page, so they belong here. */

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* The shared header is sticky on the one-pager, where main.js adds the border
   once you scroll. This page does not load main.js, so a sticky bar here would
   never get that separation — keep it static, as it was before. */
.site-header {
  position: static;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.legal {
  padding-block: var(--space-12) var(--space-20);
}

.legal__inner {
  max-width: var(--max-content);
}

.legal__title {
  margin: 0 0 var(--space-3);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.legal__meta {
  margin: 0 0 var(--space-6);
  color: var(--color-content-secondary);
  font-size: 0.9375rem;
}

.legal__langswitch {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 0 0 var(--space-8);
}

.legal__langswitch a {
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-4);
  border-radius: 999px;
  background: var(--color-surface-brand-subtle);
  color: var(--color-content-brand);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

.legal__langswitch a:hover {
  background: var(--brand-subtle);
  text-decoration: underline;
}

.legal__note {
  margin: var(--space-6) 0;
  padding: var(--space-4) var(--space-5);
  border-left: 3px solid var(--brand-primary);
  border-radius: var(--radius-md);
  background: var(--color-surface-default);
  color: var(--color-content-secondary);
  font-size: 0.9375rem;
  line-height: 1.56;
}

.legal__lang {
  padding-top: var(--space-8);
}

.legal__lang + .legal__lang {
  margin-top: var(--space-16);
  border-top: 1px solid var(--color-border-subtle);
}

.legal__badge {
  display: inline-block;
  margin: 0 0 var(--space-6);
  padding: var(--space-2) var(--space-4);
  border-radius: 999px;
  background: var(--brand-action);
  color: var(--white);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.legal h2 {
  margin: var(--space-12) 0 var(--space-4);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border-subtle);
  font-size: clamp(1.375rem, 2.5vw, 1.625rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.legal h3 {
  margin: var(--space-8) 0 var(--space-3);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.33;
  color: var(--color-content-brand);
}

.legal p {
  margin: 0 0 var(--space-4);
  color: var(--color-content-secondary);
  line-height: 1.6;
}

.legal ul {
  margin: 0 0 var(--space-4);
  padding-left: var(--space-6);
  color: var(--color-content-secondary);
  line-height: 1.6;
}

.legal li {
  margin-bottom: var(--space-2);
}

.legal strong {
  color: var(--color-content-primary);
}

.legal code {
  padding: 0.1em 0.4em;
  border-radius: 6px;
  background: var(--color-surface-default);
  font-size: 0.875em;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.legal__table-wrap {
  overflow-x: auto;
  margin: 0 0 var(--space-4);
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.legal th,
.legal td {
  border: 1px solid var(--color-border-subtle);
  padding: var(--space-3) var(--space-4);
  text-align: left;
  vertical-align: top;
  color: var(--color-content-secondary);
  line-height: 1.5;
}

.legal th {
  background: var(--color-surface-default);
  color: var(--color-content-primary);
  font-weight: 600;
}
