/* ==================================================================
   LEGAL PAGE STYLESHEET
   Used by: privacy policy, accessibility statement, terms,
            accreditation, cookies, and other legal/policy pages.
   Single-column editorial composition. Matches the SAFS
   design system: cream background, deep forest text, italic
   terracotta accents, hairline rules.
   ================================================================== */

/* PAGE SECTION */
.legal-section {
  flex: 1;
  background: #FAF7F0;
  padding: 88px 0 120px;
  position: relative;
}

.legal-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 32px;
}

/* HERO — quieter than the 404's */
.legal-hero {
  padding-bottom: 48px;
  border-bottom: 1.5px solid #1F2922;
  margin-bottom: 56px;
}

.legal-breadcrumb {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8B6F47;
  font-weight: 700;
  margin-bottom: 32px;
}
.legal-breadcrumb a {
  color: #8B6F47;
  text-decoration: none;
  border-bottom: 0.5px solid transparent;
  transition: border-color 0.15s;
}
.legal-breadcrumb a:hover {
  border-bottom-color: rgba(139,111,71,0.4);
}
.legal-breadcrumb .sep {
  margin: 0 8px;
  opacity: 0.5;
}
.legal-breadcrumb .current {
  color: #C2602F;
}

.legal-eyebrow {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #C2602F;
  font-weight: 700;
  margin-bottom: 22px;
}

.legal-h1 {
  font-family: Georgia, serif;
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: -1.8px;
  color: #1F2922;
  font-weight: 400;
  margin-bottom: 28px;
  max-width: 620px;
}
.legal-h1 .em {
  font-style: italic;
  color: #C2602F;
}

.legal-lede {
  font-size: 18px;
  line-height: 1.65;
  color: #4A5448;
  margin-bottom: 32px;
  max-width: 620px;
}
.legal-lede strong {
  color: #1F2922;
  font-weight: 600;
}

/* DOCUMENT META — last updated, print link */
.legal-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #8B6F47;
  font-weight: 600;
  padding-top: 24px;
  border-top: 0.5px solid rgba(31,41,34,0.18);
}
.legal-meta-updated .label {
  color: #C2602F;
  margin-right: 8px;
}
.legal-meta-updated .date {
  color: #1F2922;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: none;
}
.legal-meta-print {
  color: #C2602F;
  text-decoration: none;
  border-bottom: 0.5px solid rgba(194,96,47,0.4);
  padding-bottom: 2px;
  transition: color 0.15s, border-color 0.15s;
}
.legal-meta-print:hover {
  color: #1F2922;
  border-bottom-color: #1F2922;
}

/* TABLE OF CONTENTS (optional, used on long pages) */
.legal-toc {
  background: #EDE6D5;
  border-left: 2px solid #C2602F;
  padding: 28px 32px;
  margin-bottom: 56px;
}
.legal-toc-label {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8B6F47;
  font-weight: 700;
  margin-bottom: 16px;
}
.legal-toc-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 32px;
  padding: 0;
}
.legal-toc-list li {
  font-size: 13px;
  line-height: 1.5;
}
.legal-toc-list a {
  color: #1F2922;
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 3px 0;
  transition: color 0.15s;
}
.legal-toc-list a:hover {
  color: #C2602F;
}
.legal-toc-list .num {
  font-family: Georgia, serif;
  color: #C2602F;
  font-size: 12px;
  letter-spacing: -0.2px;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

/* SECTIONS */
.legal-sections {
  display: flex;
  flex-direction: column;
}

.legal-sec {
  padding-bottom: 56px;
  margin-bottom: 56px;
  border-bottom: 0.5px solid rgba(31,41,34,0.18);
}
.legal-sec:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.legal-sec-header {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  align-items: baseline;
  margin-bottom: 24px;
}
.legal-sec-num {
  font-family: Georgia, serif;
  font-size: 20px;
  color: #C2602F;
  letter-spacing: -0.4px;
  font-variant-numeric: tabular-nums;
}
.legal-sec-h2 {
  font-family: Georgia, serif;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.8px;
  color: #1F2922;
  font-weight: 400;
}
.legal-sec-h2 .em {
  font-style: italic;
  color: #C2602F;
}

.legal-sec-body {
  /* aligns with the section title — pad left equal to grid */
  padding-left: 74px;
}
.legal-sec-body p {
  font-size: 16px;
  line-height: 1.75;
  color: #1F2922;
  margin-bottom: 18px;
  max-width: 620px;
}
.legal-sec-body p:last-child {
  margin-bottom: 0;
}
.legal-sec-body p strong {
  color: #1F2922;
  font-weight: 600;
}
.legal-sec-body p em {
  font-style: italic;
  color: #C2602F;
}
.legal-sec-body a {
  color: #C2602F;
  text-decoration: none;
  border-bottom: 0.5px solid rgba(194,96,47,0.4);
  transition: color 0.15s, border-color 0.15s;
}
.legal-sec-body a:hover {
  color: #1F2922;
  border-bottom-color: #1F2922;
}

/* SUB-HEADINGS within a section */
.legal-sec-body h3 {
  font-family: Georgia, serif;
  font-size: 18px;
  line-height: 1.3;
  color: #1F2922;
  font-weight: 400;
  letter-spacing: -0.3px;
  margin: 28px 0 12px;
}
.legal-sec-body h3 .em {
  font-style: italic;
  color: #C2602F;
}

/* DEFINITION LIST — for "key terms" sections */
.legal-sec-body dl {
  margin-bottom: 18px;
}
.legal-sec-body dt {
  font-family: Georgia, serif;
  font-size: 14px;
  color: #1F2922;
  font-weight: 400;
  font-style: italic;
  margin-top: 16px;
  margin-bottom: 4px;
}
.legal-sec-body dt:first-child { margin-top: 0; }
.legal-sec-body dd {
  font-size: 15px;
  line-height: 1.7;
  color: #4A5448;
  margin-left: 0;
  padding-left: 20px;
  border-left: 1px solid rgba(31,41,34,0.18);
  max-width: 600px;
}

/* LISTS */
.legal-sec-body ul,
.legal-sec-body ol {
  margin: 0 0 18px;
  padding: 0 0 0 24px;
  max-width: 620px;
}
.legal-sec-body ul li,
.legal-sec-body ol li {
  font-size: 16px;
  line-height: 1.7;
  color: #1F2922;
  margin-bottom: 8px;
  padding-left: 6px;
}
.legal-sec-body ul li::marker {
  color: #C2602F;
}
.legal-sec-body ol li::marker {
  font-family: Georgia, serif;
  color: #C2602F;
  font-style: italic;
}

/* DATA ROWS — for "what we collect", "how we use it" sections */
.legal-rows {
  border-top: 1px solid #1F2922;
  border-bottom: 1px solid #1F2922;
  margin: 20px 0 24px;
}
.legal-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 0.5px solid rgba(31,41,34,0.18);
  align-items: baseline;
}
.legal-row:last-child {
  border-bottom: none;
}
.legal-row-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #C2602F;
  font-weight: 700;
}
.legal-row-value {
  font-size: 15px;
  line-height: 1.65;
  color: #1F2922;
}

/* CALLOUT — for important highlighted notes */
.legal-callout {
  background: #EDE6D5;
  border-left: 2px solid #C2602F;
  padding: 20px 28px;
  margin: 20px 0 24px;
  max-width: 620px;
}
.legal-callout-label {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8B6F47;
  font-weight: 700;
  margin-bottom: 8px;
}
.legal-callout-body {
  font-size: 14px;
  line-height: 1.65;
  color: #1F2922;
}
.legal-callout-body strong {
  color: #1F2922;
  font-weight: 600;
}

/* CONTACT BLOCK — for "How to contact us about this" closing */
.legal-contact {
  background: #FFFFFF;
  border: 0.5px solid rgba(31,41,34,0.25);
  padding: 32px 36px;
  margin-top: 40px;
}
.legal-contact-label {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #C2602F;
  font-weight: 700;
  margin-bottom: 14px;
}
.legal-contact-h3 {
  font-family: Georgia, serif;
  font-size: 22px;
  line-height: 1.2;
  color: #1F2922;
  font-weight: 400;
  letter-spacing: -0.4px;
  margin-bottom: 18px;
}
.legal-contact-h3 .em {
  font-style: italic;
  color: #C2602F;
}
.legal-contact-rows {
  display: flex;
  flex-direction: column;
}
.legal-contact-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 0.5px solid rgba(31,41,34,0.12);
  align-items: baseline;
  font-size: 13px;
}
.legal-contact-row:last-child {
  border-bottom: none;
}
.legal-contact-row .label {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #C2602F;
  font-weight: 700;
}
.legal-contact-row .value {
  color: #1F2922;
}
.legal-contact-row .value a {
  color: #C2602F;
  text-decoration: none;
  border-bottom: 0.5px solid rgba(194,96,47,0.4);
}

/* BACK TO TOP — appears at the bottom of long pages */
.legal-totop {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 0.5px solid rgba(31,41,34,0.18);
  text-align: center;
}
.legal-totop a {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #C2602F;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 0.5px solid rgba(194,96,47,0.4);
  padding-bottom: 2px;
  transition: color 0.15s, border-color 0.15s;
}
.legal-totop a:hover {
  color: #1F2922;
  border-bottom-color: #1F2922;
}

/* RESPONSIVE */
@media (max-width: 720px) {
  .legal-section { padding: 56px 0 80px; }
  .legal-container { padding: 0 24px; }
  .legal-h1 { font-size: 38px; letter-spacing: -1.2px; }
  .legal-sec-header { grid-template-columns: 36px 1fr; gap: 12px; }
  .legal-sec-num { font-size: 16px; }
  .legal-sec-h2 { font-size: 22px; letter-spacing: -0.5px; }
  .legal-sec-body { padding-left: 0; }
  .legal-toc-list { grid-template-columns: 1fr; }
  .legal-row { grid-template-columns: 1fr; gap: 4px; }
  .legal-contact-row { grid-template-columns: 1fr; gap: 2px; }
}

/* PRINT */
@media print {
  .legal-section { padding: 0; background: #fff; }
  .legal-meta-print, .legal-totop { display: none; }
  .legal-callout, .legal-contact { background: #f9f7f1; }
}

  .legal-table-wrap {
    margin: 24px 0;
    overflow-x: auto;
  }
  .legal-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.5;
  }
  .legal-table caption {
    text-align: left;
    font-family: Georgia, serif;
    font-style: italic;
    font-size: 13px;
    color: #C2602F;
    letter-spacing: 0.04em;
    padding-bottom: 10px;
  }
  .legal-table th {
    text-align: left;
    font-weight: 600;
    color: #1F2922;
    border-bottom: 1px solid #1F2922;
    padding: 10px 12px 8px 0;
    font-variant-numeric: tabular-nums;
  }
  .legal-table td {
    padding: 12px 12px 12px 0;
    border-bottom: 1px solid #EDE6D5;
    vertical-align: top;
    font-variant-numeric: tabular-nums;
  }
  .legal-table td:first-child {
    font-weight: 500;
  }
  .legal-table td:nth-child(2) {
    color: #1F2922;
    white-space: nowrap;
  }
  .legal-table tr:last-child td {
    border-bottom: none;
  }
  .legal-table tfoot td {
    font-weight: 600;
    border-top: 1px solid #1F2922;
    border-bottom: none;
    padding-top: 14px;
  }
