/* ============================================================
   LEGAL STYLESHEET — privacy.html and terms-of-service.html
   LIGHT theme: alpine-mist background, ink-slate text,
   alpine-fir-green headings, summit-blue accents.
   ============================================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: #3C4248;
  background-color: #F6F4EE;
  overflow-x: hidden;
}

.legal-page {
  background-color: #F6F4EE;
  color: #2E3438;
}

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

a:hover {
  color: #B06B3E;
}

/* Scope isolation: keep section backgrounds transparent on legal pages */
.legal-page .legal-content section {
  background-color: transparent !important;
}

/* ============================================================
   LEGAL HEADER
   ============================================================ */
.legal-header {
  background-color: #2E3438;
  padding: 0;
  color: #FDFCF8;
}

.legal-header .header-bar {
  max-width: 900px;
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.legal-header .legal-brand {
  display: inline-block;
  background-color: #B06B3E;
  border-radius: 6px;
  padding: 5px 3px;
  align-self: flex-start;
}

.legal-brand .face {
  display: inline-block;
  background-color: #F6F4EE;
  color: #2F5D50;
  border-radius: 4px;
  padding: 7px 14px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 16px;
}

.legal-header h1 {
  font-size: 40px;
  color: #FDFCF8;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.legal-header .updated {
  color: #C9DCE6;
  font-size: 15px;
}

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

.legal-content {
  padding-top: 44px;
  padding-bottom: 60px;
}

.legal-content .intro {
  color: #3C4248;
  font-size: 18px;
  margin-bottom: 34px;
}

/* Table of contents */
.legal-toc {
  background-color: #FDFCF8;
  border: 1px solid #DDD8CA;
  border-left: 4px solid #B06B3E;
  border-radius: 8px;
  padding: 26px 30px;
  margin-bottom: 40px;
}

.legal-toc h2 {
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #B06B3E;
  margin-bottom: 12px;
}

.legal-toc ol {
  list-style: decimal;
  padding-left: 22px;
  columns: 2;
  column-gap: 40px;
}

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

.legal-toc a {
  font-weight: 600;
}

@media (max-width: 640px) {
  .legal-toc ol { columns: 1; }
}

/* Section blocks */
.legal-content .section-block {
  background-color: #FDFCF8;
  border: 1px solid #DDD8CA;
  border-radius: 10px;
  padding: 28px 30px;
  margin-bottom: 22px;
}

.legal-content h2 {
  font-size: 24px;
  color: #2F5D50;
  font-weight: 800;
  margin-bottom: 14px;
  scroll-margin-top: 20px;
}

.legal-content h3 {
  font-size: 19px;
  color: #2F5D50;
  margin: 18px 0 10px;
  font-weight: 700;
}

.legal-content p {
  margin-bottom: 14px;
  color: #3C4248;
}

.legal-content ul,
.legal-content ol {
  margin: 0 0 14px 24px;
  color: #3C4248;
}

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

.legal-content .muted {
  color: #6A7076;
  font-size: 14px;
}

/* ============================================================
   LEGAL FOOTER
   ============================================================ */
.legal-footer {
  background-color: #2E3438;
  color: #E4E0D4;
  padding-top: 16px;
}

.legal-footer .cable-strip {
  height: 16px;
  background-color: #2E3438;
  background-image: radial-gradient(circle at 6px 8px, #B06B3E 4px, transparent 4px);
  background-size: 26px 16px;
  border-bottom: 1px solid #3A4146;
}

.legal-footer .foot-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 30px 24px 34px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.legal-footer a {
  color: #C9DCE6;
  font-weight: 600;
}

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

.legal-footer .back-link {
  align-self: flex-start;
}

.legal-footer .foot-line {
  color: #B8B4A6;
  font-size: 14px;
}

/* never any fixed bottom element */
.legal-footer {
  position: relative;
  z-index: 1;
}
