/* ============================================================
   Winnie May Inc. — Legal Pages Stylesheet
   Loaded ONLY by privacy.html and terms-of-service.html
   ============================================================ */

.legal-page {
  background-color: #12100E;
  color: #F3EDE4;
}

:root {
  --bg: #12100E;
  --panel: #1D1812;
  --panel-2: #241E16;
  --line: #33291E;
  --line-strong: #4C3C27;
  --text: #F3EDE4;
  --text-dim: #C9BCA7;
  --text-mute: #9C8F78;
  --bronze: #B87333;
  --bronze-bright: #D98E4A;
  --bronze-deep: #8A5423;
  --sand: #E7C9A9;
  --sand-bright: #F6E3CF;
  --ink: #1B1209;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 32px;
}

.legal-page {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---- scope isolation: never paint section backgrounds over legal text ---- */
.legal-page .legal-content section {
  background-color: transparent !important;
}

/* ============================ HEADER ============================ */

.legal-header {
  background: linear-gradient(135deg, var(--bronze-deep) 0%, var(--bronze) 55%, var(--bronze-bright) 100%);
  border-bottom: 1px solid var(--line);
  padding: 72px 0 56px;
}

.legal-header-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-back {
  display: inline-block;
  margin-bottom: 26px;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--ink);
}

.legal-back::before {
  content: "\2190";
  margin-right: 8px;
}

.legal-back:hover {
  text-decoration: underline;
}

.legal-header h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 14px;
}

.legal-header .legal-meta {
  color: var(--ink-soft, #2A1B0C);
  font-size: 0.95rem;
}

/* ============================ CONTENT ============================ */

.legal-content {
  padding: 56px 0 0;
}

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

.legal-content h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  line-height: 1.25;
  color: var(--sand);
  margin: 0 0 16px;
  padding-top: 28px;
}

.legal-content section {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 34px;
}

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

.legal-content p {
  color: var(--text-dim);
  margin-bottom: 16px;
}

.legal-content p strong {
  color: var(--sand-bright);
}

.legal-content ul {
  color: var(--text-dim);
  margin: 4px 0 18px 22px;
}

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

.legal-content a {
  color: var(--bronze-bright);
  text-decoration: underline;
}

.legal-content a:hover {
  color: var(--sand-bright);
}

/* ============================ TABLE OF CONTENTS ============================ */

.legal-content .toc {
  background-color: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 28px 30px;
  margin-bottom: 48px;
}

.legal-content .toc h2 {
  padding-top: 0;
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bronze-bright);
  margin-bottom: 14px;
}

.legal-content .toc ol {
  color: var(--text-dim);
  margin: 0 0 0 20px;
  columns: 2;
  column-gap: 36px;
}

.legal-content .toc li {
  margin-bottom: 8px;
  break-inside: avoid;
}

.legal-content .toc a {
  color: var(--text-dim);
  text-decoration: none;
}

.legal-content .toc a:hover {
  color: var(--sand-bright);
}

/* ============================ FOOTER ============================ */

.legal-footer {
  background-color: #0D0B09;
  border-top: 2px solid var(--bronze);
  padding: 40px 24px;
  margin-top: 48px;
}

.legal-footer-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.legal-footer p {
  color: var(--text-mute);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.legal-footer a {
  color: var(--sand);
  text-decoration: none;
}

.legal-footer a:hover {
  color: var(--sand-bright);
  text-decoration: underline;
}

.legal-footer .footer-links {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

/* ============================ RESPONSIVE ============================ */

@media (max-width: 640px) {
  .legal-header {
    padding: 56px 0 44px;
  }

  .legal-content .toc ol {
    columns: 1;
  }

  .legal-content h2 {
    font-size: 1.35rem;
  }
}
