.legal-page {
  background: #fffdf6;
  color: #173842;
}

.legal-hero {
  border-bottom: 1px solid rgba(40, 111, 127, 0.16);
  background: #fffdf6;
  padding: 120px 24px 48px;
}

.legal-wrap {
  width: min(900px, 100%);
  margin: 0 auto;
}

.legal-page h1 {
  margin: 12px 0 0;
  color: #173842;
  font-family: var(--font-cormorant, Georgia, serif);
  font-size: clamp(42px, 7vw, 74px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: 0;
}

.legal-content-section {
  padding: 52px 24px 80px;
}

.legal-content-card {
  display: grid;
  gap: 16px;
  border: 1px solid rgba(40, 111, 127, 0.14);
  background: #fffefa;
  box-shadow: 0 18px 55px rgba(23, 56, 66, 0.08);
  padding: clamp(24px, 5vw, 48px);
}

.legal-content-card h2,
.legal-content-card h3 {
  margin: 18px 0 4px;
  color: #173842;
  font-family: var(--font-cormorant, Georgia, serif);
  font-weight: 500;
  letter-spacing: 0;
}

.legal-content-card p,
.legal-content-card li {
  margin: 0;
  color: #140f0c;
  font-family: var(--font-amiri, Georgia, serif);
  font-size: 17px;
  line-height: 1.75;
}

.legal-content-card a {
  color: #286f7f;
}

.legal-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  justify-content: center;
  border-top: 1px solid rgba(40, 111, 127, 0.16);
  background: #fffdf6;
  color: #286f7f;
  padding: 22px 18px;
  font-family: var(--font-amiri, Georgia, serif);
  font-size: 14px;
}

.legal-footer a {
  color: inherit;
  text-decoration: none;
}

.legal-footer a:hover {
  text-decoration: underline;
}

.legal-footer-links {
  width: min(1150px, 100%);
  color: #f6e69d;
  justify-content: center;
  align-items: center;
  gap: 64px;
  margin: 22px auto 0;
  padding-top: 12px;
  font-size: 0.92rem;
  display: flex;
}

.legal-footer-link {
  color: #f6e69d;
  text-decoration: none;
  transition: opacity 0.2s;
}

.legal-footer-link:hover {
  opacity: 0.72;
}

.legal-page + .legal-footer-links,
.cookie-consent {
  display: none !important;
}

.legal-page {
  background: #fffdf6;
  min-height: 100vh;
  padding: 64px 24px 88px;
}

.legal-page-shell {
  width: min(940px, 100%);
  margin: 0 auto;
}

.legal-page-shell-narrow {
  width: min(760px, 100%);
}

.legal-back-link {
  color: #286f7f;
  font-family: var(--font-cormorant-sc, Georgia, serif);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 32px;
  font-size: 1rem;
  display: inline-flex;
}

.legal-document {
  color: #2b2a26;
  background: rgba(255, 255, 255, 0.7);
  padding: 52px 56px 60px;
  box-shadow: 0 18px 44px rgba(40, 111, 127, 0.09);
}

.legal-document h1,
.legal-document h2,
.legal-document h3,
.legal-document h4,
.legal-document h5 {
  color: #34516b;
  font-family: var(--font-cormorant-infant, Georgia, serif);
  font-weight: 600;
  line-height: 1.15;
}

.legal-document h1 {
  margin-bottom: 34px;
  font-size: 3.1rem;
}

.legal-document h2 {
  border-top: 1px solid #d8e9e6;
  margin: 42px 0 18px;
  padding-top: 22px;
  font-size: 2rem;
}

.legal-document h3 {
  margin: 30px 0 10px;
  font-size: 1.45rem;
}

.legal-document h4 {
  margin: 24px 0 8px;
  font-size: 1.18rem;
}

.legal-document h5 {
  margin: 20px 0 8px;
  font-size: 1.05rem;
}

.legal-document p,
.legal-document li {
  font-size: 1rem;
  line-height: 1.78;
}

.legal-document p {
  margin: 0 0 15px;
}

.legal-document ul {
  margin: 0 0 18px 24px;
}

.legal-document a {
  color: #286f7f;
  text-underline-offset: 3px;
  text-decoration: underline;
}

.custom-added-section {
  background: #fffdf6;
  color: #173842;
  padding: clamp(52px, 8vw, 86px) 24px;
}

.custom-added-wrap {
  display: grid;
  gap: 18px;
  width: min(900px, 100%);
  margin: 0 auto;
}

.custom-added-wrap.center {
  justify-items: center;
  text-align: center;
}

.custom-added-section h2 {
  margin: 0;
  color: #173842;
  font-family: var(--font-cormorant, Georgia, serif);
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0;
}

.custom-added-section p {
  margin: 0;
  color: #140f0c;
  font-family: var(--font-amiri, Georgia, serif);
  font-size: 18px;
  line-height: 1.75;
}

.custom-added-image-target {
  margin: 0;
}

.custom-added-image-target img {
  display: block;
  width: min(520px, 100%);
  height: auto;
  border: 1px solid rgba(40, 111, 127, 0.16);
  box-shadow: 0 18px 40px rgba(23, 56, 66, 0.14);
}

.custom-added-picture .custom-added-wrap {
  justify-items: center;
  text-align: center;
}

.cookie-consent {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 10003;
  width: min(440px, calc(100vw - 36px));
}

.cookie-consent-card {
  border: 1px solid rgba(255, 253, 246, 0.18);
  border-radius: 8px;
  background: #12333a;
  box-shadow: 0 18px 55px rgba(18, 51, 58, 0.28);
  color: #fffdf6;
  font-family: system-ui, sans-serif;
  padding: 18px;
}

.cookie-consent-card h2 {
  margin: 0 0 8px;
  color: #f1df8a;
  font: 700 17px/1.25 system-ui, sans-serif;
  letter-spacing: 0;
}

.cookie-consent-card p,
.cookie-consent-card label,
.cookie-consent-card a {
  color: #e6f0ef;
  font: 13px/1.45 system-ui, sans-serif;
}

.cookie-consent-options {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

.cookie-consent-options label {
  display: flex;
  gap: 8px;
  align-items: center;
}

.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 10px;
}

.cookie-consent-actions button {
  flex: 1 1 140px;
  border: 1px solid rgba(255, 253, 246, 0.28);
  border-radius: 4px;
  background: rgba(255, 253, 246, 0.08);
  color: #fffdf6;
  cursor: pointer;
  font: 700 12px/1 system-ui, sans-serif;
  min-height: 36px;
  padding: 10px 12px;
}

.cookie-consent-actions button:first-child,
.cookie-consent-actions button[data-cookie-action="save"] {
  border-color: #f1df8a;
  background: #f1df8a;
  color: #12333a;
}

@media (max-width: 700px) {
  .legal-hero {
    padding-top: 86px;
  }

  .cookie-consent {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
  }
}
