/* ============================================================
   CLOSERSCONNECT — legal stylesheet
   Shared by privacy.html and terms-of-service.html
   LIGHT warm cream theme, cocoa mahogany headings
   ============================================================ */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: #F8F4EE;
  color: #2A1F18;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", Times, serif;
  color: #2A1F18;
  line-height: 1.25;
}

h2 {
  color: #6E4426;
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 14px;
  padding-top: 30px;
}

p {
  margin: 0 0 1em;
}

a {
  color: #6E4426;
  text-decoration: none;
}

ul {
  margin: 0 0 1em;
  padding-left: 22px;
}

/* Scope isolation: legal content sections never paint backgrounds */
.legal-page .legal-content section {
  background-color: transparent !important;
}

/* ============================================================
   LEGAL HEADER — a header element with a gradient background
   ============================================================ */
.legal-header {
  background: linear-gradient(135deg, #6E4426 0%, #3A2A1A 100%);
  color: #F8F4EE;
}

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

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.legal-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #F8F4EE;
}

.legal-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.legal-wordmark {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.14em;
  color: #F8F4EE;
  white-space: nowrap;
}

.legal-brand-caption {
  display: block;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #EADFCE;
  margin-top: 2px;
  white-space: nowrap;
}

.legal-home-link {
  color: #F8F4EE;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  border: 1.5px solid #F8F4EE;
  padding: 9px 16px;
  border-radius: 3px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.legal-home-link:hover {
  background-color: #F8F4EE;
  color: #6E4426;
}

/* Gavel glyph on the gradient header */
.legal-header .gavel-mark {
  position: relative;
  display: block;
  width: 18px;
  height: 24px;
  flex-shrink: 0;
}

.legal-header .gavel-mark::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 18px;
  height: 6px;
  background-color: #F8F4EE;
  border-radius: 3px;
}

.legal-header .gavel-mark::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 6px;
  width: 6px;
  height: 16px;
  background-color: #F8F4EE;
  border-radius: 0 0 2px 2px;
}

.legal-h1 {
  color: #F8F4EE;
  font-size: 40px;
  font-weight: 700;
  margin: 32px 0 10px;
}

.legal-lede {
  color: #F8F4EE;
  font-size: 16.5px;
  max-width: 760px;
  margin: 0;
}

/* ============================================================
   LEGAL CONTENT
   ============================================================ */
.legal-content .container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-meta {
  font-size: 14px;
  color: #2A1F18;
  margin: 34px 0 0;
}

.legal-meta strong {
  color: #6E4426;
}

/* Table of contents */
.toc {
  background-color: #EADFCE;
  border: 1.5px solid #6E4426;
  border-radius: 6px;
  padding: 22px 26px;
  margin: 26px 0 8px;
}

.toc-title {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-weight: 700;
  font-size: 15px;
  color: #6E4426;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin: 0 0 12px;
}

.toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 2;
  column-gap: 36px;
}

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

.toc a {
  color: #2A1F18;
  font-size: 14.5px;
}

.toc a:hover {
  color: #6E4426;
  text-decoration: underline;
}

/* Legal sections */
.legal-content section {
  padding: 22px 0 24px;
  border-bottom: 1px solid #EADFCE;
}

.legal-content section:last-of-type {
  border-bottom: 0;
}

.legal-content p,
.legal-content li {
  font-size: 15.5px;
  color: #2A1F18;
}

.legal-content ul {
  margin-bottom: 1em;
}

.back-top {
  display: inline-block;
  margin: 30px 0 40px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: #6E4426;
  border: 1.5px solid #6E4426;
  padding: 9px 16px;
  border-radius: 3px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.back-top:hover {
  background-color: #EADFCE;
}

/* ============================================================
   LEGAL FOOTER
   ============================================================ */
.legal-footer {
  border-top: 2px solid #6E4426;
  background-color: #F8F4EE;
}

.legal-footer .footer-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 26px 24px 30px;
  text-align: center;
}

.legal-footer p {
  margin: 4px 0;
  font-size: 13px;
  color: #2A1F18;
}

.legal-footer a {
  color: #6E4426;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
  .toc ul {
    columns: 1;
  }

  .legal-h1 {
    font-size: 30px;
  }

  .legal-header .header-inner {
    padding-top: 24px;
  }
}
