:root {
  color-scheme: light dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --background: #f7f4ec;
    --surface: #ffffff;
    --line: rgba(29, 27, 22, .14);
    --text: #211f1a;
    --muted: #615d53;
    --accent: #8a4f06;
  }

  .button {
    color: #ffffff;
  }
}

.policy-hero {
  position: relative;
  overflow: hidden;
  padding: 48px 16px 32px;
  text-align: center;
}

.policy-hero::before {
  content: "";
  position: absolute;
  inset: -60% 50% auto 50%;
  width: 680px;
  height: 480px;
  translate: -50% 0;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--gold-deep) 38%, transparent), transparent);
  animation: breathe 7s ease-in-out infinite;
}

.policy-hero > * {
  position: relative;
}

.policy-hero .brand-mark {
  width: 64px;
  height: 84px;
  margin: 0 auto 8px;
  transform-origin: 50% 90%;
  animation: rock 5s ease-in-out infinite;
}

.policy-hero p {
  margin: 0;
  font: 800 clamp(22px, 5vw, 30px)/1.2 var(--display);
}

.language-switch {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.policy {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px 48px;
}

.policy section {
  margin-top: 24px;
  padding: clamp(20px, 5vw, 48px);
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold-deep);
  border-radius: 24px;
  background: var(--surface);
}

.policy section > * {
  max-width: 65ch;
}

.policy h1 {
  margin: 0 0 8px;
  font-size: clamp(27px, 6vw, 38px);
}

.policy h2 {
  margin: 32px 0 8px;
  font-size: 22px;
}

.policy p {
  margin: 0 0 14px;
}

.policy a {
  overflow-wrap: anywhere;
}

.policy .updated {
  color: var(--muted);
  font-size: 15px;
}

.back-to-top {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.back-to-top a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 22px;
  text-decoration: none;
}

@keyframes rock {
  0%, 70%, 100% { rotate: 0deg; }
  76% { rotate: -7deg; }
  82% { rotate: 6deg; }
  88% { rotate: -3deg; }
}

@keyframes breathe {
  50% { opacity: .55; }
}

@media (prefers-reduced-motion: reduce) {
  .policy-hero::before,
  .policy-hero .brand-mark {
    animation: none;
  }
}
