/* =========================================
   SHARED DOCUMENT STYLES
   ========================================= */
body {
  line-height: 1.6;
  color: #333;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: #f9f9f9;
}

.container {
  background: white;
  padding: 40px;
}

h1,
h2,
h3 {
  color: #1b2032;
}

h1 {
  border-bottom: 2px solid #eee;
}

ul {
  margin-bottom: 20px;
}

.emphasis {
  font-weight: 700;
  color: #1b2032;
}

.footer {
  border-top: 1px solid #eee;
  color: #666;
}

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

a:hover {
  text-decoration: underline !important;
}

.nav-back-btn {
  width: 160px !important;
  height: 44px;
  margin: 20px auto 0 !important;
  padding: 0 20px !important;
  font-size: 0.9rem !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--golden-hour, #e1a63c) !important;
  color: var(--deep-midnight, #1b2032) !important;
  box-shadow: 0 2px 4px rgb(0 0 0 / 10%) !important;
  border-radius: 8px !important;
  border: none !important;
  font-weight: 700;
  text-transform: uppercase;
  box-sizing: border-box;
}

.button-container {
  text-align: center;
}

.nav-back-icon {
  width: 18px;
}

.site-footer {
  text-align: center;
  padding: 20px;
  color: #666;
}

/* =========================================
   PAGE-SPECIFIC OVERRIDES
   ========================================= */

/* --- Legal Page --- */
body.legal-page {
  font-family:
    Montserrat,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Arial,
    sans-serif;
}

body.legal-page .container {
  border-radius: 12px;
  box-shadow: 0 4px 20px rgb(0 0 0 / 8%);
}

body.legal-page h1 {
  padding-bottom: 15px;
  font-weight: 700;
}

body.legal-page h2 {
  margin-top: 35px;
  font-size: 1.3rem;
  border-left: 4px solid #e1a63c;
  padding-left: 15px;
}

body.legal-page h3 {
  margin-top: 25px;
  font-size: 1.1rem;
}

body.legal-page li {
  margin-bottom: 12px;
}

body.legal-page .footer {
  margin-top: 50px;
  padding-top: 25px;
  font-size: 0.9rem;
}

body.legal-page a {
  font-weight: 600;
}

/* --- Privacy Page --- */
body.privacy-page {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

body.privacy-page .container {
  border-radius: 8px;
  box-shadow: 0 2px 10px rgb(0 0 0 / 5%);
}

body.privacy-page h1 {
  padding-bottom: 10px;
}

body.privacy-page h2 {
  margin-top: 30px;
  font-size: 1.25rem;
}

body.privacy-page h3 {
  margin-top: 20px;
  font-size: 1.1rem;
}

body.privacy-page li {
  margin-bottom: 10px;
}

body.privacy-page .footer {
  margin-top: 40px;
  padding-top: 20px;
  font-size: 0.85em;
}

/* =========================================
   DARK MODE
   ========================================= */
body.dark-mode {
  background-color: #1b2032;
  color: #fff;
}

body.dark-mode .container {
  background-color: #1b2032;
  border: 1px solid #e1a63c;
  box-shadow: 0 8px 30px rgb(0 0 0 / 30%);
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode .emphasis {
  color: #fff;
}

body.dark-mode h1 {
  border-bottom: 2px solid #444;
}

body.dark-mode a {
  color: #e1a63c;
}

body.dark-mode .footer {
  border-top: 1px solid #444;
  color: #ccc;
}
