:root {
  --rth-legal-ink: #1c342f;
  --rth-legal-muted: #52615c;
  --rth-legal-gold: #b28a3d;
  --rth-legal-paper: #fbf8f1;
  --rth-legal-ground: #ede6d8;
}

body {
  background: var(--rth-legal-ground) !important;
  color: var(--rth-legal-ink) !important;
}

.header {
  position: relative;
  z-index: 10;
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px max(24px, calc((100vw - 1180px) / 2)) !important;
  border-bottom: 1px solid rgba(215, 180, 94, 0.28) !important;
  background: #19312d !important;
  box-shadow: 0 10px 26px rgba(24, 49, 45, 0.12);
}

.header > a {
  color: #f8f3e8 !important;
  font-weight: 700;
  text-decoration: none !important;
}

.header > a:hover,
.header > a:focus-visible {
  color: #dfc488 !important;
}

.lang-bar {
  display: flex;
  gap: 6px;
}

.lang-bar button {
  min-width: 34px;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.06) !important;
  color: #fff !important;
}

.lang-bar button.active {
  border-color: #d7b45e !important;
  background: #d7b45e !important;
  color: #19312d !important;
}

.container {
  width: min(920px, calc(100% - 40px)) !important;
  max-width: 920px !important;
  margin: 48px auto 72px !important;
  padding: clamp(34px, 6vw, 68px) !important;
  border: 1px solid rgba(85, 104, 95, 0.14);
  border-radius: 28px;
  background: var(--rth-legal-paper) !important;
  box-shadow: 0 22px 60px rgba(37, 55, 49, 0.1);
}

h1,
h2,
h3 {
  color: var(--rth-legal-ink) !important;
  font-family: Georgia, "Times New Roman", serif !important;
}

h1 {
  font-size: clamp(36px, 6vw, 58px) !important;
  line-height: 1.05 !important;
}

h2 {
  margin-top: 48px !important;
  font-size: clamp(23px, 3vw, 31px) !important;
  line-height: 1.18 !important;
}

h3 {
  font-size: 20px !important;
}

.subtitle,
p,
li,
td {
  color: var(--rth-legal-muted) !important;
}

a {
  color: #987124;
  text-decoration-color: rgba(152, 113, 36, 0.38);
  text-underline-offset: 3px;
}

a:hover,
a:focus-visible {
  color: #6f5015;
  text-decoration-color: currentColor;
}

.legal-box,
.highlight-box,
.toc {
  border: 1px solid rgba(178, 138, 61, 0.22) !important;
  border-radius: 16px !important;
  background: #f1eadc !important;
}

.highlight-box {
  border-left: 4px solid var(--rth-legal-gold) !important;
}

.cookie-table,
.storno-table {
  overflow: hidden;
  border-radius: 14px;
  background: #fffdf8;
}

.cookie-table th,
.storno-table th {
  background: #dfe7df !important;
  color: var(--rth-legal-ink) !important;
}

code {
  border-radius: 5px;
  background: #e8e1d3 !important;
  color: #27463f !important;
}

@media (max-width: 700px) {
  .header {
    min-height: 68px;
    align-items: flex-start;
    padding: 14px 16px !important;
  }

  .header > a {
    padding-top: 7px;
    font-size: 13px;
    white-space: nowrap;
  }

  .lang-bar {
    max-width: 58vw;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .lang-bar button {
    min-width: 32px;
    min-height: 32px;
  }

  .container {
    width: calc(100% - 24px) !important;
    margin: 18px 12px 42px !important;
    padding: 30px 20px !important;
    border-radius: 20px;
  }

  h1 {
    font-size: 36px !important;
  }

  h2 {
    margin-top: 38px !important;
    font-size: 25px !important;
  }
}
