:root {
  --sand-l: #F0E6BC;
  --deep-l: #383644;
  --orange-l: #EE6A42;
  --stone-l: #B4BCB4;
  --wader-l: #D6E2E8;
  --willow-l: #748E5E;
  --buoy-l: #D85248;
  --paper-l: #F8F2D6;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-size: 16px;
  font-family: "Segoe UI", "Trebuchet MS", Verdana, sans-serif;
  background-color: #F0E6BC;
  color: #383644;
  line-height: 1.75;
  overflow-x: hidden;
}

.legal-header {
  background-color: #383644;
  color: #F0E6BC;
  padding: 0;
}

.legal-header__inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.legal-header__brand {
  color: #F0E6BC;
  text-decoration: none;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: bold;
  font-size: 1rem;
  letter-spacing: 0.03em;
}

.legal-header__brand:hover,
.legal-header__brand:focus {
  text-decoration: underline;
  text-decoration-color: #D85248;
  text-underline-offset: 4px;
}

.legal-header__nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.legal-header__link {
  color: #F0E6BC;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}

.legal-header__link:hover,
.legal-header__link:focus {
  text-decoration: underline;
  text-decoration-color: #D85248;
  text-underline-offset: 4px;
}

.legal-title-block {
  background-color: #D6E2E8;
  border-bottom: 3px solid #B4BCB4;
  padding: 46px 0 40px;
}

.legal-title-block__inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-title-block h1 {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  color: #383644;
  line-height: 1.2;
}

.legal-title-block__meta {
  margin: 0;
  color: #3A3848;
  font-size: 0.95rem;
  font-weight: 600;
}

.legal-body {
  background-color: #F0E6BC;
  padding: 0;
}

.legal-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-content section {
  background-color: transparent;
  color: #383644;
  padding: 26px 0;
  border-bottom: 1px solid #CBC198;
}

.legal-content h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.32rem;
  color: #383644;
  margin: 0 0 10px;
  line-height: 1.3;
}

.legal-content h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  color: #383644;
  margin: 18px 0 6px;
}

.legal-content p {
  margin: 0 0 14px;
  color: #383644;
}

.legal-content p:last-child {
  margin-bottom: 0;
}

.legal-content ul {
  margin: 0 0 14px;
  padding-left: 22px;
  color: #383644;
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-content a {
  color: #8A3A20;
  text-decoration: underline;
  text-decoration-color: #D85248;
  text-underline-offset: 3px;
}

.legal-content a:hover,
.legal-content a:focus {
  color: #383644;
}

.legal-intro {
  border-left: 4px solid #EE6A42;
  background-color: #E7EAD9;
  padding: 18px 20px;
  border-radius: 0 6px 6px 0;
  margin: 0 0 6px;
}

.legal-toc {
  background-color: #F8F2D6;
  border: 1px solid #B4BCB4;
  border-radius: 8px;
  padding: 22px 24px;
  margin: 30px 0 8px;
}

.legal-toc h2 {
  font-size: 1.1rem;
  margin: 0 0 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #4F6440;
  font-family: "Segoe UI", "Trebuchet MS", Verdana, sans-serif;
}

.legal-toc ol {
  margin: 0;
  padding-left: 20px;
  columns: 2;
  column-gap: 34px;
}

.legal-toc li {
  margin-bottom: 6px;
  break-inside: avoid;
}

.legal-toc a {
  color: #383644;
  text-decoration: none;
  font-size: 0.95rem;
}

.legal-toc a:hover,
.legal-toc a:focus {
  color: #8A3A20;
  text-decoration: underline;
  text-decoration-color: #D85248;
  text-underline-offset: 3px;
}

.legal-footer {
  background-color: #F0E6BC;
  border-top: 4px solid #383644;
}

.legal-footer__inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 28px 24px 36px;
}

.legal-footer__links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin: 0 0 14px;
}

.legal-footer__links a {
  color: #383644;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
}

.legal-footer__links a:hover,
.legal-footer__links a:focus {
  color: #8A3A20;
  text-decoration: underline;
  text-decoration-color: #D85248;
  text-underline-offset: 4px;
}

.legal-footer__note {
  margin: 0;
  color: #383644;
  font-size: 0.9rem;
}

.legal-footer__note a {
  color: #5C7549;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 640px) {
  .legal-toc ol {
    columns: 1;
  }

  .legal-title-block {
    padding: 34px 0 30px;
  }
}
