@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Manrope:wght@600;700;800&display=swap");

:root {
  color-scheme: light;
  --ink: #182520;
  --paper: #f7f7f2;
  --mint: #c8f45a;
  --green: #244f3e;
  --muted: #5f6c66;
  --line: rgba(24, 37, 32, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", system-ui, sans-serif;
  line-height: 1.7;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header { justify-content: flex-end; padding: 30px 0; }
.language-switcher { display: flex; gap: 8px; }
.language-switcher a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 15px;
  color: var(--ink);
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
}
.language-switcher a:hover { background: var(--mint); border-color: var(--ink); }

main { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.document-intro {
  margin: 28px 0 64px;
  padding: clamp(36px, 7vw, 80px);
  border-radius: 30px;
  background: var(--green);
  color: white;
}
.eyebrow {
  margin: 0 0 22px;
  color: var(--mint);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}
h1 {
  margin: 0;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: clamp(2.4rem, 6vw, 5.8rem);
  letter-spacing: -.055em;
  line-height: 1;
}
h1 span { color: var(--mint); }
.validity-note { max-width: 760px; margin: 30px 0 0; color: #dfe9e4; }

.terms {
  max-width: 820px;
  margin: 0 auto 110px;
  scroll-margin-top: 20px;
}
.language-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 44px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: .92rem;
}
.language-heading p { margin: 0; }
.terms h2 {
  margin: 52px 0 16px;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
  letter-spacing: -.025em;
  line-height: 1.3;
}
.terms p { margin: 0 0 18px; }
.terms li { margin-bottom: 8px; }
.terms a { color: var(--green); font-weight: 600; text-underline-offset: 3px; }
.important {
  padding: 20px 24px;
  border-left: 5px solid var(--mint);
  background: #edf5dc;
  font-weight: 600;
}
#en {
  padding-top: 80px;
  border-top: 2px solid var(--ink);
}

@media (max-width: 640px) {
  .site-header { align-items: flex-start; }
  .language-switcher { flex-direction: column; }
  .language-switcher a { padding: 5px 12px; text-align: center; }
  .document-intro { margin-top: 8px; padding: 34px 24px; border-radius: 22px; }
  .language-heading { flex-direction: column; gap: 4px; }
  .terms { margin-bottom: 72px; }
  .terms h2 { margin-top: 42px; }
}

@media print {
  .site-header, .language-switcher { display: none; }
  main, .terms { width: 100%; max-width: none; }
  .document-intro { margin: 0 0 40px; padding: 30px; background: white; color: black; border: 2px solid black; }
  h1 span, .eyebrow, .validity-note { color: black; }
  .terms { break-after: page; }
}
