/* ============================================================
   GGB Sip — Legal Pages Stylesheet
   ============================================================ */

:root {
  --color-deep-oak: #5C2E1A;
  --color-sunset: #E8742D;
  --color-steel: #3D5C73;
  --color-parchment: #F8F4EE;
  --color-white: #FFFFFF;
  --color-text: #1E1815;
  --color-text-light: #5C5048;
  --color-border: #D5CCC2;
  --color-footer: #3A1F12;
  --font-heading: 'Georgia', 'Times New Roman', serif;
  --font-body: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text);
  background-color: var(--color-parchment);
}

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

.legal-header {
  background: linear-gradient(135deg, var(--color-deep-oak) 0%, var(--color-steel) 100%);
  padding: 72px 24px 48px;
  text-align: center;
}

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

.legal-header h1 {
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.legal-header .last-updated {
  color: #C4BDB4;
  font-size: 0.9rem;
}

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

.legal-content-wrapper {
  max-width: 840px;
  margin: 0 auto;
  padding: 48px 24px 0;
}

/* Table of Contents */
.toc {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 28px 32px;
  margin-bottom: 44px;
}

.toc h2 {
  font-family: var(--font-heading);
  color: var(--color-deep-oak);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.toc ol {
  list-style: decimal;
  padding-left: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 24px;
}

.toc ol li {
  margin-bottom: 4px;
}

.toc ol li a {
  color: var(--color-steel);
  font-size: 0.92rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.toc ol li a:hover {
  color: var(--color-sunset);
  text-decoration: underline;
}

/* Legal Sections */
.legal-section {
  margin-bottom: 44px;
}

.legal-section h2 {
  font-family: var(--font-heading);
  color: var(--color-deep-oak);
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-border);
}

.legal-section h3 {
  font-family: var(--font-heading);
  color: var(--color-steel);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
  margin-top: 20px;
}

.legal-section p {
  color: var(--color-text);
  margin-bottom: 14px;
}

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

.legal-section ul li,
.legal-section ol li {
  margin-bottom: 8px;
  color: var(--color-text);
}

.legal-section strong {
  color: var(--color-deep-oak);
  font-weight: 600;
}

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

.legal-footer {
  background-color: var(--color-footer);
  color: #C4BDB4;
  padding: 28px 24px;
  margin-top: 0;
}

.legal-footer-inner {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.legal-footer-inner p {
  color: #9E968D;
  font-size: 0.85rem;
  margin-bottom: 0;
}

.legal-footer-inner a {
  color: var(--color-sunset);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

.legal-footer-inner a:hover {
  text-decoration: underline;
}

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

@media (max-width: 768px) {
  .legal-header h1 {
    font-size: 1.7rem;
  }

  .legal-content-wrapper {
    padding: 32px 16px 0;
  }

  .toc {
    padding: 20px 16px;
  }

  .toc ol {
    grid-template-columns: 1fr;
  }

  .legal-section h2 {
    font-size: 1.25rem;
  }

  .legal-footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
