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

html {
  background-color: #D8F2F0;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-size: 16px;
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  background-color: #D8F2F0;
  color: #22385C;
  line-height: 1.72;
  overflow-x: hidden;
}

h1, h2, h3, p, ul, ol, li { margin-top: 0; }

.legal-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background-color: #DCB05C;
  color: #22385C;
  padding: 10px 18px;
  z-index: 20;
}
.legal-skip:focus { left: 12px; top: 12px; }

.legal-header {
  background-color: #22385C;
  color: #F0FAF8;
  padding: 34px 24px 30px;
  border-bottom: 5px solid #DCB05C;
}
.legal-header-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}
.legal-header-kicker {
  margin: 0 0 8px;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #DCB05C;
  font-weight: 700;
}
.legal-header h1 {
  color: #F0FAF8;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  margin: 0 0 10px;
  line-height: 1.18;
}
.legal-header-meta {
  color: #F0FAF8;
  margin: 0;
  font-size: 0.94rem;
}
.legal-header-meta span { color: #C8A882; margin: 0 8px; }

.legal-nav {
  max-width: 820px;
  margin: 0 auto;
  padding: 16px 24px 0;
}
.legal-nav a {
  color: #22385C;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: #DCB05C;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.legal-nav a:hover { text-decoration-color: #9C8C3C; }

.legal-main {
  max-width: 820px;
  margin: 0 auto;
  padding: 26px 24px 56px;
}

.legal-content {
  background-color: #D8F2F0;
  color: #22385C;
}
.legal-content section {
  background-color: transparent !important;
  border: 0;
  padding: 0;
  margin: 0 0 26px;
}
.legal-content h2 {
  font-size: 1.22rem;
  color: #22385C;
  margin: 32px 0 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid #8E9C9C;
  line-height: 1.3;
}
.legal-content section:first-of-type h2 { margin-top: 0; }
.legal-content h3 {
  font-size: 1.02rem;
  color: #22385C;
  margin: 20px 0 8px;
}
.legal-content p {
  color: #22385C;
  margin: 0 0 14px;
  font-size: 1rem;
}
.legal-content ul, .legal-content ol {
  margin: 0 0 16px;
  padding-left: 22px;
  color: #22385C;
}
.legal-content li { margin-bottom: 8px; }
.legal-content a {
  color: #22385C;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: #DCB05C;
  text-underline-offset: 3px;
}
.legal-content a:hover { text-decoration-color: #9C8C3C; }
.legal-content strong { color: #22385C; }

.legal-toc {
  background-color: #F0FAF8;
  border: 1px solid #8E9C9C;
  border-left: 4px solid #3E8896;
  padding: 22px 26px;
  margin: 0 0 18px;
}
.legal-toc h2 {
  font-size: 1.05rem !important;
  margin: 0 0 12px !important;
  border-bottom: 0 !important;
  padding-bottom: 0 !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.legal-toc ol {
  margin: 0;
  padding-left: 20px;
  color: #22385C;
  columns: 2;
  column-gap: 30px;
}
.legal-toc li { margin-bottom: 6px; break-inside: avoid; }
.legal-toc a { color: #22385C; text-decoration-color: #DCB05C; }

.legal-contactbox {
  background-color: #F0FAF8;
  border: 1px solid #8E9C9C;
  border-top: 4px solid #C8A882;
  padding: 22px 26px;
  margin: 26px 0 0;
}
.legal-contactbox h2 { margin-top: 0 !important; border-bottom: 0 !important; }
.legal-contactbox p:last-child { margin-bottom: 0; }

.legal-footer {
  background-color: #D8F2F0;
  border-top: 1px solid #8E9C9C;
  padding: 26px 24px 34px;
}
.legal-footer-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}
.legal-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 0.96rem;
}
.legal-footer-links a {
  color: #22385C;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid #D8F2F0;
}
.legal-footer-links a:hover { border-bottom-color: #9C8C3C; }
.legal-footer-sep { color: #8E9C9C; }
.legal-footer p {
  color: #22385C;
  font-size: 0.9rem;
  margin: 0 0 6px;
  line-height: 1.8;
}
.legal-footer a { color: #22385C; font-weight: 700; text-decoration: underline; text-decoration-color: #DCB05C; text-underline-offset: 3px; }

@media (max-width: 680px) {
  .legal-toc ol { columns: 1; }
  .legal-header-inner, .legal-main, .legal-footer-inner, .legal-nav { padding-left: 20px; padding-right: 20px; }
}
