/* ============================================================
   CANYON VIEW WATER POLO ASSOCIATION — css/legal.css
   Shared stylesheet for privacy.html and terms-of-service.html.
   Light theme: ice white-blue background, deep slate text.
   Solid hex colors only.
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
}

.legal-page {
  background-color: #F6FAFC;
  color: #22303A;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
}

/* --- Legal page header (solid background, strong contrast) --- */
.legal-header {
  background-color: #16232C;
  padding: 56px 0 48px;
  border-bottom: 4px solid #2E9BD6;
}

.legal-header .container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-header .legal-kicker {
  display: inline-block;
  background-color: #2E9BD6;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.legal-header h1 {
  font-size: 38px;
  color: #FFFFFF;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: 14px;
}

.legal-header .legal-updated {
  font-size: 14px;
  color: #C9DCEA;
}

.legal-header a {
  color: #9FD3F0;
  border-bottom: 1px solid #2E9BD6;
}

.legal-header a:hover {
  color: #FFFFFF;
  border-bottom-color: #FFFFFF;
}

/* --- Layout --- */
.legal-content .container {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 24px 8px;
}

/* Scope isolation: only style sections inside the legal content. */
.legal-page .legal-content section {
  background-color: transparent !important;
}

.legal-content section {
  margin-bottom: 40px;
}

.legal-content h2 {
  font-size: 26px;
  color: #16232C;
  font-weight: 800;
  margin-bottom: 16px;
  padding-top: 8px;
  line-height: 1.3;
}

.legal-content h3 {
  font-size: 20px;
  color: #16232C;
  font-weight: 700;
  margin-top: 26px;
  margin-bottom: 10px;
  line-height: 1.35;
}

.legal-content h4 {
  font-size: 17px;
  color: #1E7FC4;
  font-weight: 700;
  margin-top: 20px;
  margin-bottom: 8px;
}

.legal-content p {
  margin-bottom: 16px;
  color: #22303A;
}

.legal-content ul,
.legal-content ol {
  margin: 0 0 16px 22px;
  color: #22303A;
}

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

.legal-content strong {
  color: #16232C;
  font-weight: 700;
}

.legal-content a {
  color: #1E7FC4;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-content a:hover {
  color: #16232C;
}

/* --- Table of contents --- */
.toc {
  background-color: #E8F2F7;
  border: 1px solid #D5E3EC;
  border-left: 4px solid #2E9BD6;
  border-radius: 10px;
  padding: 22px 24px;
  margin-bottom: 44px;
}

.toc h2 {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #16232C;
  margin-bottom: 12px;
  padding-top: 0;
}

.toc ol {
  list-style: none;
  margin: 0;
  counter-reset: toc;
}

.toc li {
  margin-bottom: 8px;
  counter-increment: toc;
  padding-left: 30px;
  position: relative;
}

.toc li::before {
  content: counter(toc, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-size: 13px;
  font-weight: 800;
  color: #FFFFFF;
  background-color: #2E9BD6;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;
}

.toc a {
  color: #22303A;
  text-decoration: none;
  font-weight: 600;
}

.toc a:hover {
  color: #1E7FC4;
  text-decoration: underline;
}

/* --- Callout boxes --- */
.legal-note {
  background-color: #E8F2F7;
  border: 1px solid #D5E3EC;
  border-radius: 8px;
  padding: 16px 20px;
  margin: 18px 0;
  color: #22303A;
}

.legal-note strong {
  color: #1E7FC4;
}

/* --- Footer --- */
.legal-footer {
  background-color: #16232C;
  border-top: 4px solid #2E9BD6;
  padding: 34px 0;
  margin-top: 40px;
}

.legal-footer .container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-footer p {
  color: #C9DCEA;
  font-size: 14px;
  text-align: center;
  margin-bottom: 8px;
}

.legal-footer .footer-links {
  text-align: center;
  font-size: 14px;
}

.legal-footer .footer-links a {
  color: #9FD3F0;
  text-decoration: none;
  margin: 0 12px;
  border-bottom: 1px solid transparent;
}

.legal-footer .footer-links a:hover {
  color: #FFFFFF;
  border-bottom-color: #2E9BD6;
}

/* --- Responsive --- */
@media (max-width: 720px) {
  .legal-header h1 {
    font-size: 30px;
  }

  .legal-content h2 {
    font-size: 23px;
  }

  .legal-header {
    padding: 40px 0 36px;
  }
}
