@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,650;9..144,750&family=Space+Grotesk:wght@400;500;700&display=swap');

:root {
  --green-950: #09251d;
  --green-900: #123f31;
  --green-800: #17513e;
  --gold-500: #f5ad2f;
  --paper: rgba(251, 252, 247, 0.86);
  --ink: #13231e;
  --muted: #53635d;
  --line: rgba(19, 35, 30, 0.13);
  --shadow: 0 24px 70px rgba(9, 37, 29, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: 'Space Grotesk', 'Trebuchet MS', sans-serif;
  background:
    linear-gradient(120deg, rgba(245, 173, 47, 0.2), transparent 30%),
    linear-gradient(240deg, rgba(18, 63, 49, 0.12), transparent 28%),
    linear-gradient(180deg, #f8f4e9 0%, #edf3ec 46%, #f9f7ef 100%);
}

img {
  display: block;
  max-width: 100%;
}

button,
a {
  font: inherit;
}

.legal-shell {
  min-height: 100vh;
}

.site-header,
.legal-main,
.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 12px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  background: rgba(251, 252, 247, 0.82);
  box-shadow: 0 14px 38px rgba(9, 37, 29, 0.1);
  backdrop-filter: blur(18px);
}

.brand,
.site-header nav,
.header-actions,
.header-login {
  display: inline-flex;
  align-items: center;
}

.brand {
  gap: 10px;
  min-height: 46px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.02em;
  color: inherit;
}

.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.site-header nav {
  align-self: center;
  gap: 6px;
  flex-wrap: wrap;
}

.header-actions {
  align-self: center;
  gap: 10px;
}

.site-header nav a,
.header-login,
.language-switcher button {
  min-height: 44px;
  border-radius: 999px;
}

.site-header nav a,
.header-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
}

.site-header nav a:hover,
.site-header nav a.is-active,
.header-login:hover {
  background: rgba(18, 63, 49, 0.08);
  color: var(--green-900);
}

.header-login {
  border: 1px solid var(--line);
  color: var(--green-900);
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-height: 44px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
}

.language-switcher button {
  min-width: 34px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.language-switcher button.is-active {
  background: var(--green-900);
  color: #fffaf0;
}

.legal-main {
  display: grid;
  gap: 24px;
  padding: 26px 0 36px;
}

.legal-hero,
.legal-section,
.site-footer {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.legal-hero,
.legal-section {
  padding: 26px;
}

.legal-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.62fr);
  gap: 18px;
  align-items: start;
  background: rgba(251, 252, 247, 0.92);
}

.legal-hero-copy,
.legal-hero-side,
.legal-section-heading {
  display: grid;
  gap: 12px;
}

.eyebrow {
  width: fit-content;
  border: 1px solid rgba(186, 116, 22, 0.2);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(245, 173, 47, 0.17);
  color: #7b4a0e;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

h1,
h2 {
  font-family: 'Fraunces', Georgia, serif;
  line-height: 0.98;
}

h1 {
  font-size: clamp(2.15rem, 4vw, 3.35rem);
  max-width: 14ch;
  line-height: 1.03;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  max-width: 16ch;
}

h3 {
  font-size: 1.12rem;
  color: var(--green-900);
}

p,
li {
  color: var(--muted);
  line-height: 1.7;
}

ul {
  padding-left: 18px;
}

.legal-side-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.legal-card {
  display: grid;
  gap: 12px;
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.58);
}

.legal-card--full {
  grid-column: 1 / -1;
}

.legal-inline-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.legal-inline-links a {
  color: var(--green-900);
  font-weight: 700;
  text-decoration: none;
}

.legal-inline-links a:hover {
  text-decoration: underline;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 40px;
  padding: 20px 22px;
}

.site-footer strong {
  display: block;
  margin-bottom: 4px;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.2rem;
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 16px;
}

.site-footer-links a {
  color: var(--green-900);
  font-weight: 700;
  text-decoration: none;
}

.site-footer-links a:hover {
  text-decoration: underline;
}

@media (max-width: 1040px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .site-header nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .header-actions {
    margin-left: auto;
  }

  .legal-hero,
  .legal-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header,
  .legal-main,
  .site-footer {
    width: min(100% - 20px, 1180px);
    max-width: calc(100vw - 20px);
  }

  .site-header {
    top: 8px;
    gap: 10px;
    padding: 10px;
  }

  .brand img {
    width: 40px;
    height: 40px;
  }

  .header-actions {
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .header-login {
    min-height: 38px;
    padding: 0 11px;
    flex: 1 1 144px;
  }

  .language-switcher {
    overflow-x: auto;
  }

  .site-header nav a {
    min-height: 36px;
    padding: 0 10px;
  }

  .legal-hero,
  .legal-section,
  .site-footer {
    padding: 18px;
    border-radius: 22px;
  }

  .legal-hero {
    gap: 14px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer-links {
    justify-content: flex-start;
  }

  h1 {
    font-size: clamp(2rem, 9vw, 2.7rem);
  }

  h2 {
    font-size: clamp(1.8rem, 8vw, 2.4rem);
  }
}
