:root {
  color-scheme: light;
  --bg:
    radial-gradient(circle at 14% -2%, rgba(242, 170, 100, 0.28), transparent 34%),
    radial-gradient(circle at 84% 12%, rgba(123, 148, 98, 0.18), transparent 28%),
    linear-gradient(180deg, #f4ead8 0%, #efe1cc 100%);
  --paper: rgba(251, 246, 238, 0.88);
  --paper-strong: rgba(255, 249, 241, 0.94);
  --ink: #14261d;
  --ink-soft: rgba(20, 38, 29, 0.76);
  --ink-muted: rgba(20, 38, 29, 0.54);
  --moss: #173227;
  --accent: #dd6b3e;
  --leaf: #7b9462;
  --border: rgba(20, 38, 29, 0.08);
  --border-soft: rgba(20, 38, 29, 0.12);
  --shadow-soft: 0 20px 60px rgba(94, 68, 28, 0.14);
  --shadow-strong: 0 34px 90px rgba(94, 68, 28, 0.18);
  --radius: 34px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  background-attachment: fixed;
  color: var(--ink);
  padding: clamp(18px, 4vw, 40px) clamp(14px, 4vw, 34px) clamp(28px, 6vw, 54px);
}

a {
  color: inherit;
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.policy-shell {
  width: min(1220px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

#policy-root {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2.6vw, 28px);
}

.policy-bar,
.policy-hero,
.policy-document {
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.policy-bar {
  display: grid;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 32px;
  background: rgba(251, 246, 238, 0.82);
}

.policy-brand {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}

.policy-brand__eyebrow {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.policy-brand__wordmark {
  font-size: 1rem;
  line-height: 1;
}

.policy-bar__nav,
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.policy-bar__link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink-soft);
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.policy-bar__link:hover {
  background: rgba(255, 255, 255, 0.56);
  color: var(--ink);
  transform: translateY(-1px);
}

.policy-bar__link--active {
  background: var(--moss);
  color: #f7f1e5;
}

.locale-switcher {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px 0 14px;
  border: 1px solid rgba(20, 38, 29, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  color: var(--ink);
}

.locale-switcher__accent {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  flex: 0 0 8px;
  background: linear-gradient(135deg, var(--accent), #f0b084);
  box-shadow: 0 0 14px rgba(221, 107, 62, 0.25);
}

.locale-switcher__select {
  min-width: 110px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  appearance: none;
  outline: none;
  cursor: pointer;
}

.locale-switcher__caret {
  color: var(--ink-muted);
  pointer-events: none;
}

.policy-hero,
.policy-document {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 250, 244, 0.9) 0%, rgba(248, 240, 228, 0.82) 100%);
}

.policy-hero {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 5vw, 42px);
}

.policy-hero::before,
.policy-document::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.52), transparent 42%),
    radial-gradient(circle at 16% 0%, rgba(242, 170, 100, 0.14), transparent 34%);
  pointer-events: none;
}

.policy-hero__content,
.policy-summary,
.policy-content,
.policy-section {
  position: relative;
  z-index: 1;
}

.policy-hero__content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.back-link {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.back-link:hover {
  color: var(--ink);
}

.pill {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(247, 241, 229, 0.1);
  background: rgba(255, 249, 241, 0.12);
  color: rgba(247, 241, 229, 0.92);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pill__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #f0b084);
  box-shadow: 0 0 16px rgba(221, 107, 62, 0.3);
}

.policy-hero__eyebrow {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.policy-hero h1 {
  margin: 0;
  max-width: 10ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 10vw, 5rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.policy-intro {
  display: grid;
  gap: 14px;
  max-width: 42rem;
}

.policy-intro p {
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 3vw, 1.12rem);
  line-height: 1.72;
}

.translation-notice {
  max-width: 40rem;
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid rgba(20, 38, 29, 0.1);
  background: rgba(255, 255, 255, 0.42);
}

.translation-notice h2 {
  margin: 0 0 8px;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}

.translation-notice p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.6;
}

.policy-summary {
  align-self: stretch;
}

.policy-summary__panel {
  display: grid;
  gap: 16px;
  padding: 20px 18px;
  min-height: 100%;
  border-radius: 30px;
  background: linear-gradient(160deg, #203a2f 0%, #102118 100%);
  box-shadow: var(--shadow-strong);
  color: #f7f1e5;
}

.fact-grid {
  display: grid;
  gap: 0;
}

.fact-card__label {
  margin: 0;
  color: rgba(247, 241, 229, 0.58);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.fact-card {
  padding: 14px 0;
  border-top: 1px solid rgba(247, 241, 229, 0.12);
}

.fact-card:first-child {
  border-top: 0;
  padding-top: 0;
}

.fact-card__value {
  margin: 12px 0 0;
  color: #f7f1e5;
  font-size: 1rem;
  line-height: 1.6;
}

.policy-document {
  padding: clamp(22px, 4vw, 36px);
}

.policy-content {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.policy-section {
  display: grid;
  gap: 16px;
  padding: 28px 0;
  border-top: 1px solid rgba(20, 38, 29, 0.08);
}

.policy-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.policy-section__heading {
  display: grid;
  gap: 10px;
}

.policy-section__index {
  color: rgba(20, 38, 29, 0.28);
  font-size: clamp(1.9rem, 7vw, 3rem);
  line-height: 1;
  letter-spacing: -0.08em;
  font-weight: 700;
}

.policy-section h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 5vw, 2.45rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.policy-section__body {
  display: grid;
  gap: 14px;
}

.policy-section__body p,
.policy-section__body li {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.8;
}

.policy-section__body p {
  margin: 0;
}

.policy-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.policy-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 0.58rem;
  border-radius: 999px;
  flex: 0 0 8px;
  background: linear-gradient(135deg, var(--accent), #edb280);
}

.policy-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.subsection-list {
  display: grid;
  gap: 18px;
  margin-top: 6px;
}

.subsection {
  padding-top: 18px;
  border-top: 1px solid rgba(20, 38, 29, 0.08);
}

.subsection h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--ink-muted);
  font-size: 0.92rem;
  padding: 8px 8px 0;
}

.footer__links a:hover {
  color: var(--ink);
}

@keyframes policy-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.policy-bar,
.policy-hero,
.policy-section,
.footer {
  animation: policy-rise 0.5s ease both;
}

.policy-hero {
  animation-delay: 0.06s;
}

.policy-section:nth-child(2) {
  animation-delay: 0.08s;
}

.policy-section:nth-child(3) {
  animation-delay: 0.12s;
}

@media (min-width: 760px) {
  .policy-bar {
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 20px;
    padding: 16px 22px;
  }

  .policy-bar__nav {
    justify-self: end;
  }

  .policy-hero {
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.72fr);
    gap: clamp(24px, 4vw, 48px);
    align-items: end;
  }
}

@media (min-width: 920px) {
  .policy-section__heading {
    grid-template-columns: minmax(72px, auto) minmax(0, 1fr);
    column-gap: 18px;
    row-gap: 12px;
    align-items: start;
  }

  .policy-section__index {
    width: 2.1ch;
    font-size: clamp(2.1rem, 3vw, 2.8rem);
  }

  .policy-section h2 {
    font-size: clamp(1.8rem, 3vw, 2.65rem);
    line-height: 0.98;
  }

  .policy-summary {
    position: sticky;
    top: 18px;
    align-self: start;
  }
}

@media (max-width: 719px) {
  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
