/* ==========================================================================
   Legal pages stylesheet — loads standalone for privacy and terms pages
   Palette matches the main site with strong contrast, solid hex only.
   ========================================================================== */

:root {
  --vault: #201C3E;
  --paper: #C4D0F2;
  --amber: #E39A20;
  --steel: #3E5A62;
  --steel-line: #6B8791;
  --mist: #C2BCC4;
  --teal: #387898;
  --olive: #80803C;
  --ink: #2A2436;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-size: 16px;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background-color: #201C3E;
  color: #C4D0F2;
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: #E39A20;
}

a:hover,
a:focus {
  text-decoration: underline;
  text-decoration-color: #80803C;
  text-underline-offset: 3px;
}

/* Plain legal header */
.legal-header {
  background-color: #3E5A62;
  border-bottom: 4px solid #2A2436;
  padding: 26px 0;
}

.legal-header__inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-header__kicker {
  font-family: "Consolas", "Courier New", monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #201C3E;
  background-color: #80803C;
  display: inline-block;
  padding: 3px 8px;
  margin-bottom: 12px;
  font-weight: 700;
}

.legal-header h1 {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: clamp(28px, 5vw, 42px);
  color: #C4D0F2;
  margin: 0 0 8px;
  line-height: 1.2;
}

.legal-header__brand {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 15px;
  color: #C4D0F2;
  letter-spacing: 0.05em;
  margin: 0;
}

.legal-header__back {
  display: inline-block;
  margin-top: 14px;
  font-size: 14px;
  color: #E39A20;
  border-bottom: 2px solid #80803C;
  padding-bottom: 1px;
}

.legal-header__back:hover,
.legal-header__back:focus {
  text-decoration: none;
  border-bottom-color: #E39A20;
}

/* Wrapper */
.legal-wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Table of contents */
.legal-toc {
  background-color: #3E5A62;
  border-radius: 4px;
  border-left: 6px solid #E39A20;
  padding: 24px 26px;
  margin: 40px 0 10px;
}

.legal-toc__title {
  font-family: "Consolas", "Courier New", monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #C4D0F2;
  margin: 0 0 14px;
}

.legal-toc ol {
  margin: 0;
  padding-left: 20px;
  columns: 2;
  column-gap: 34px;
}

.legal-toc li {
  padding: 3px 0;
  break-inside: avoid;
}

.legal-toc a {
  color: #C4D0F2;
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.legal-toc a:hover,
.legal-toc a:focus {
  color: #E39A20;
  border-bottom-color: #E39A20;
  text-decoration: none;
}

/* Legal content */
.legal-content {
  padding: 20px 0 60px;
}

.legal-content section {
  background-color: transparent !important;
  padding: 18px 0;
  border-bottom: 1px solid #526E76;
}

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

.legal-content h2 {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 25px;
  color: #E39A20;
  margin: 26px 0 12px;
  line-height: 1.25;
}

.legal-content h3 {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 19px;
  color: #C4D0F2;
  margin: 20px 0 8px;
}

.legal-content p {
  font-size: 16px;
  color: #C4D0F2;
  margin: 0 0 14px;
}

.legal-content ul,
.legal-content ol {
  margin: 0 0 16px;
  padding-left: 24px;
}

.legal-content li {
  margin-bottom: 8px;
  color: #C4D0F2;
  font-size: 16px;
}

.legal-content strong {
  color: #C4D0F2;
  font-weight: 700;
}

.legal-content a {
  color: #E39A20;
  border-bottom: 1px solid #80803C;
}

.legal-content a:hover,
.legal-content a:focus {
  text-decoration: none;
  border-bottom-color: #E39A20;
}

.legal-meta {
  background-color: #3E5A62;
  border-radius: 4px;
  padding: 18px 22px;
  margin-bottom: 18px;
}

.legal-meta p {
  margin: 0 0 4px;
  font-size: 14.5px;
  color: #C4D0F2;
}

.legal-meta p:last-child {
  margin-bottom: 0;
}

.legal-note {
  background-color: #2A2436;
  border-left: 5px solid #387898;
  padding: 16px 20px;
  margin: 16px 0;
}

.legal-note p {
  margin: 0;
  color: #C4D0F2;
}

.legal-address {
  background-color: #C2BCC4;
  border-radius: 4px;
  padding: 20px 22px;
  margin: 16px 0;
}

.legal-address p {
  color: #2A2436;
  margin: 0 0 3px;
  font-size: 15.5px;
}

.legal-address p:last-child {
  margin-bottom: 0;
}

.legal-address a {
  color: #2A2436;
  border-bottom: 1px solid #3E5A62;
}

/* Footer */
.legal-footer {
  background-color: #3E5A62;
  border-top: 4px solid #2A2436;
  padding: 30px 0;
  margin-top: 0;
}

.legal-footer__inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  align-items: center;
  justify-content: space-between;
}

.legal-footer__brand {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 15px;
  color: #C4D0F2;
}

.legal-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.legal-footer__links a {
  color: #C4D0F2;
  font-size: 14px;
}

.legal-footer__links a:hover,
.legal-footer__links a:focus {
  color: #E39A20;
}

.legal-footer__strip {
  max-width: 880px;
  margin: 16px auto 0;
  padding: 14px 24px 0;
  border-top: 1px solid #6B8791;
  font-size: 13px;
  color: #C4D0F2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}

.legal-footer__strip a {
  color: #C4D0F2;
}

.legal-footer__strip a:hover,
.legal-footer__strip a:focus {
  color: #E39A20;
}

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

  .legal-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
