/* ============================================================
   BerCo — legal pages stylesheet (privacy.html / terms-of-service.html)
   Light graphite-pearl theme · loaded alone, never with style.css
   ============================================================ */

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

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
}

.legal-page {
  background-color: #F4F5F7;
  color: #2B3038;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: #3D4756;
}

/* ---- legal header (block-level, solid background, never a section) ---- */

.legal-header {
  background-color: #1A1F26;
  padding: 56px 0 48px;
  border-bottom: 4px solid #3D4756;
}

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

.legal-brand {
  display: inline-block;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 5px;
  color: #FFFFFF;
  text-decoration: none;
  border: 2px solid #3D4756;
  border-radius: 8px;
  padding: 6px 14px;
}

.legal-header-sub {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #C6CBD4;
}

.legal-header h1 {
  margin-top: 20px;
  font-size: 40px;
  line-height: 1.2;
  color: #FFFFFF;
}

.legal-updated {
  margin-top: 14px;
  font-size: 14px;
  color: #C6CBD4;
}

/* ---- table of contents ---- */

.toc {
  background-color: #FFFFFF;
  border: 1px solid #D8DCE2;
  border-radius: 12px;
  padding: 28px 30px;
  margin: 40px 0 8px;
}

.toc-title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #1A1F26;
  margin-bottom: 16px;
}

.toc-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 32px;
}

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

.toc-list a {
  color: #3D4756;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.toc-list a:hover {
  color: #1A1F26;
  border-bottom-color: #3D4756;
}

/* ---- legal content ---- */

.legal-content {
  padding: 24px 0 56px;
}

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

.legal-content .intro-block {
  margin: 24px 0 40px;
  font-size: 17px;
  color: #2B3038;
}

.legal-content .intro-block p + p {
  margin-top: 16px;
}

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

.legal-content section:last-child {
  border-bottom: none;
}

.legal-page .legal-content section {
  background-color: transparent !important;
}

.legal-content h2 {
  font-size: 26px;
  line-height: 1.3;
  color: #1A1F26;
  padding-bottom: 12px;
  margin-bottom: 18px;
  border-bottom: 2px solid #3D4756;
  display: inline-block;
}

.legal-content h3 {
  font-size: 18px;
  color: #1A1F26;
  margin: 22px 0 10px;
}

.legal-content p {
  color: #2B3038;
  margin-bottom: 16px;
}

.legal-content ul,
.legal-content ol {
  margin: 0 0 16px 24px;
  color: #2B3038;
}

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

.legal-content .legal-back-top {
  display: inline-block;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #3D4756;
  text-decoration: none;
  border-bottom: 2px solid #3D4756;
}

/* ---- legal footer ---- */

.legal-footer {
  background-color: #1A1F26;
  border-top: 1px solid #2E3540;
  padding: 40px 0;
  text-align: center;
}

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

.legal-footer p {
  font-size: 14px;
  color: #8A9099;
  margin-top: 10px;
}

.legal-footer p:first-child {
  margin-top: 0;
}

.legal-footer a {
  color: #C6CBD4;
  text-decoration: none;
  font-weight: 700;
}

.legal-footer a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

/* ---- responsive ---- */

@media (max-width: 780px) {
  .legal-header h1 {
    font-size: 30px;
  }

  .toc-list {
    grid-template-columns: 1fr;
  }

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