/* Shared legal stylesheet for privacy.html and terms-of-service.html */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-size: 16px;
  margin: 0;
  padding: 0;
  background-color: #F6F6EA;
  color: #3E4036;
  font-family: Georgia, "Times New Roman", "Liberation Serif", serif;
  line-height: 1.7;
  overflow-x: hidden;
}

.legal-header {
  background-color: #2C2C22;
  border-bottom: 5px solid #16588A;
  padding: 26px 24px;
}

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

.legal-header__brand {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #F6F6EA;
  text-decoration: none;
}

.legal-header__brand:hover { color: #BEA641; }

.legal-header__back {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #F6F6EA;
  text-decoration: none;
  border: 2px solid #BEA641;
  border-radius: 3px;
  padding: 8px 14px;
}

.legal-header__back:hover {
  background-color: #BEA641;
  color: #2C2C22;
}

.legal-title {
  background-color: #F6F6EA;
  border-bottom: 4px solid #E0DED0;
  padding: 48px 24px 34px;
}

.legal-title__inner {
  max-width: 940px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-title__kicker {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #16588A;
  margin: 0 0 12px;
}

.legal-title h1 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 40px;
  line-height: 1.12;
  font-weight: 800;
  color: #2C2C22;
  margin: 0 0 14px;
}

.legal-title__updated {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #3E4036;
  margin: 0;
}

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

.legal-content section {
  background-color: transparent !important;
  padding: 26px 0 6px;
  border-bottom: 1px solid #E0DED0;
}

.legal-content h2 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 23px;
  font-weight: 800;
  color: #2C2C22;
  margin: 0 0 12px;
  line-height: 1.25;
}

.legal-content h2 .legal-content__num {
  color: #16588A;
  margin-right: 10px;
}

.legal-content p {
  font-size: 16px;
  color: #3E4036;
  margin: 0 0 14px;
}

.legal-content ul {
  margin: 0 0 16px;
  padding-left: 24px;
}

.legal-content li {
  font-size: 16px;
  color: #3E4036;
  margin-bottom: 9px;
}

.legal-content a {
  color: #16588A;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-content a:hover { color: #2C2C22; }

.legal-content strong { color: #2C2C22; }

.legal-toc {
  background-color: #E0DED0;
  border: 3px solid #3E4036;
  border-left: 10px solid #16588A;
  border-radius: 0 6px 6px 0;
  padding: 24px 28px;
  margin: 30px 0 10px;
}

.legal-toc__title {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #2C2C22;
  margin: 0 0 14px;
}

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

.legal-toc li {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  margin-bottom: 8px;
  break-inside: avoid;
}

.legal-toc a {
  color: #16588A;
  text-decoration: none;
  font-weight: 700;
}

.legal-toc a:hover { text-decoration: underline; }

.legal-note {
  background-color: #F6F6EA;
  border: 2px solid #BEA641;
  border-radius: 5px;
  padding: 18px 22px;
  margin: 20px 0;
}

.legal-note p { margin: 0; }

.legal-footer {
  background-color: #2C2C22;
  padding: 34px 24px;
}

.legal-footer__inner {
  max-width: 940px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.legal-footer__text {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  color: #D9D7C8;
  margin: 0;
  line-height: 1.6;
}

.legal-footer__link {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #F6F6EA;
  text-decoration: none;
  border-bottom: 2px solid #BEA641;
  padding-bottom: 2px;
}

.legal-footer__link:hover { color: #BEA641; }

@media (max-width: 700px) {
  .legal-title h1 { font-size: 30px; }
  .legal-toc ol { columns: 1; }
  .legal-header__inner { justify-content: flex-start; }
}
