/* =========================================================
   WaveCity — legal.css
   Shared stylesheet for privacy.html and terms-of-service.html
   Light theme · deep ink · wave-azure · light foam
   ========================================================= */

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

html {
  scroll-behavior: smooth;
}

body {
  font-size: 16px;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.75;
  background-color: #F5F9FB;
  color: #12202A;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #2E86AB;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* scope isolation: only the legal content body, never the header or footer */
.legal-page .legal-content section {
  background-color: transparent !important;
}

/* =========================================================
   Legal header — solid background, high-contrast title
   ========================================================= */

.legal-header {
  background-color: #12202A;
  border-bottom: 4px solid #2E86AB;
}

.legal-header-inner {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-brand {
  display: inline-block;
  margin-top: 22px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #CFE3EC;
}

.legal-brand:hover {
  color: #FFFFFF;
  text-decoration: none;
}

.legal-title-row {
  padding: 34px 0 40px;
}

.legal-eyebrow {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #CFE3EC;
  margin-bottom: 10px;
}

.legal-title-row h1 {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #F5F9FB;
}

/* =========================================================
   Main container
   ========================================================= */

.legal-main {
  padding: 48px 0 40px;
}

.legal-container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-intro {
  font-size: 18px;
  line-height: 1.8;
  color: #12202A;
  background-color: #FFFFFF;
  border-left: 4px solid #2E86AB;
  padding: 24px 26px;
  margin-bottom: 32px;
}

/* =========================================================
   Table of contents
   ========================================================= */

.toc {
  background-color: #CFE3EC;
  border: 1px solid #9DBBCB;
  padding: 26px 28px;
  margin-bottom: 44px;
}

.toc-title {
  display: block;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #12202A;
  margin-bottom: 12px;
}

.toc ol {
  list-style: none;
  counter-reset: toc;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 28px;
}

.toc li {
  counter-increment: toc;
  font-size: 15px;
}

.toc li::before {
  content: counter(toc, decimal-leading-zero);
  font-weight: 800;
  color: #2E86AB;
  margin-right: 8px;
}

.toc a {
  color: #12202A;
  font-weight: 600;
}

.toc a:hover {
  color: #2E86AB;
  text-decoration: underline;
}

/* =========================================================
   Content sections
   ========================================================= */

.legal-content {
  background-color: #FFFFFF;
  border: 1px solid #CFE3EC;
  padding: 40px 48px 16px;
}

.legal-content section {
  padding: 8px 0 28px;
}

.legal-content h2 {
  font-size: 24px;
  font-weight: 800;
  color: #12202A;
  padding-bottom: 10px;
  margin-bottom: 16px;
  border-bottom: 2px solid #2E86AB;
}

.legal-content p {
  font-size: 16px;
  line-height: 1.85;
  color: #12202A;
  margin-bottom: 14px;
}

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

/* =========================================================
   Footer
   ========================================================= */

.legal-footer {
  margin-top: 40px;
  text-align: center;
  background-color: #CFE3EC;
  border: 1px solid #9DBBCB;
  padding: 28px 24px;
}

.legal-footer p {
  font-size: 14px;
  line-height: 1.8;
  color: #12202A;
}

.legal-footer a {
  color: #2E86AB;
  font-weight: 700;
}

.legal-footer a:hover {
  color: #12202A;
}

.legal-footer p:first-child a {
  color: #12202A;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 760px) {
  .toc ol {
    grid-template-columns: 1fr;
  }

  .legal-title-row h1 {
    font-size: 34px;
  }

  .legal-content {
    padding: 28px 24px 8px;
  }
}

@media (max-width: 480px) {
  .legal-main {
    padding: 28px 0 20px;
  }
}
