/* ===== Legal pages stylesheet — Impetusy / Porcelain-bone light theme ===== */

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

html { scroll-behavior: smooth; }

body.legal-page {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.75;
  background-color: #F5F3ED;
  color: #33383C;
  overflow-x: hidden;
}

.legal-page a { color: #1F5C5A; text-decoration: none; }
.legal-page a:hover { color: #C08A3E; }

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

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

/* ============================= LEGAL HEADER ============================= */
.legal-header {
  background-color: #1F5C5A;
  padding: 34px 0;
  border-bottom: 4px solid #C08A3E;
}

.legal-header .legal-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.legal-brand {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #FCFAF4;
  text-transform: uppercase;
}

.legal-back {
  color: #FCFAF4;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 2px solid #C08A3E;
  padding-bottom: 3px;
}

.legal-back:hover { color: #E6DFCE; }

.legal-title-wrap {
  background-color: #F5F3ED;
  padding: 40px 0 8px;
}

.legal-title-wrap h1 {
  font-size: 42px;
  color: #1F5C5A;
  font-weight: 700;
  margin-bottom: 10px;
}

.legal-updated {
  color: #8B8F8A;
  font-size: 14px;
}

/* ============================= LEGAL CONTENT ============================= */
.legal-content {
  padding: 44px 0 70px;
}

.legal-intro {
  font-size: 17px;
  color: #33383C;
  margin-bottom: 34px;
  padding: 22px 26px;
  background-color: #FCFAF4;
  border-left: 4px solid #C08A3E;
}

.legal-content h2 {
  font-size: 26px;
  color: #1F5C5A;
  font-weight: 700;
  margin: 40px 0 16px;
  padding-top: 8px;
}

.legal-content h3 {
  font-size: 20px;
  color: #1F5C5A;
  font-weight: 700;
  margin: 26px 0 12px;
}

.legal-content p {
  color: #40464B;
  margin-bottom: 16px;
}

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

.legal-content ul li {
  margin-bottom: 10px;
  color: #40464B;
  position: relative;
  padding-left: 18px;
}

.legal-content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background-color: #C08A3E;
  border-radius: 2px;
}

/* Table of contents */
.legal-toc {
  background-color: #FCFAF4;
  border: 1px solid #DFDACB;
  border-radius: 8px;
  padding: 26px 28px;
  margin-bottom: 40px;
}

.legal-toc h2 {
  font-size: 22px;
  color: #1F5C5A;
  margin: 0 0 16px;
  font-weight: 700;
}

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

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

.legal-toc ol li::before {
  content: counter(toc);
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  background-color: #1F5C5A;
  color: #FCFAF4;
  font-size: 13px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.legal-toc ol li a {
  color: #33383C;
  font-size: 15px;
}

.legal-toc ol li a:hover { color: #C08A3E; }

/* Address blocks */
.legal-address {
  background-color: #FCFAF4;
  border: 1px solid #DFDACB;
  border-left: 4px solid #1F5C5A;
  border-radius: 6px;
  padding: 18px 22px;
  margin: 20px 0;
  color: #33383C;
  position: relative;
  z-index: 1;
}

/* Definition-style lists */
.legal-def {
  margin-bottom: 22px;
}

.legal-def dt {
  font-weight: 700;
  color: #1F5C5A;
  margin-bottom: 6px;
}

.legal-def dd {
  margin: 0 0 8px;
  color: #40464B;
  padding-left: 18px;
  border-left: 2px solid #DFDACB;
}

/* Legal footer */
.legal-footer {
  background-color: #33383C;
  padding: 34px 0 40px;
  text-align: center;
}

.legal-footer .legal-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.legal-footer p {
  color: #8B8F8A;
  font-size: 14px;
}

.legal-footer .legal-footer-links a {
  color: #FCFAF4;
  font-size: 14px;
  margin: 0 12px;
  letter-spacing: 0.05em;
}

.legal-footer .legal-footer-links a:hover { color: #C08A3E; }

.legal-footer .footer-top-link {
  color: #C08A3E;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 640px) {
  .legal-title-wrap h1 { font-size: 32px; }
  .legal-content h2 { font-size: 23px; }
}
