/* ============================================================
   DELIVERY PRIME GGSB LLC — shared legal stylesheet
   Used only by privacy.html and terms-of-service.html
   Plain single-column centered legal form. Strong contrast.
   No rgba. No opacity decimals. No gradients on text.
   ============================================================ */

* {
  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: #262B31;
  color: #E9ECEF;
  line-height: 1.78;
  overflow-x: hidden;
}

.legal-header {
  background-color: #171A1F;
  border-bottom: 4px solid #DBA03A;
  padding: 26px 24px 24px;
}

.legal-header-inner {
  max-width: 940px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.legal-brand {
  display: block;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #E9ECEF;
  text-decoration: none;
}

.legal-brand:hover,
.legal-brand:focus {
  color: #DBA03A;
  text-decoration: none;
}

.legal-header h1 {
  color: #FFFFFF;
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0;
  letter-spacing: 0.02em;
}

.legal-backlink {
  color: #DBA03A;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.legal-backlink:hover,
.legal-backlink:focus {
  text-decoration: underline;
}

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

/* Scope isolation: legal sections must never inherit a band
   background from any other stylesheet. */
.legal-content section {
  background-color: transparent !important;
}

.legal-intro {
  background-color: #2E353D;
  border: 3px solid #3B444E;
  border-left: 6px solid #DBA03A;
  border-radius: 5px;
  padding: 26px 28px;
  margin: 42px 0 34px;
}

.legal-intro p {
  margin: 0 0 1em;
  color: #E9ECEF;
}

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

.legal-meta {
  display: block;
  color: #DBA03A;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 12px;
}

.legal-toc {
  background-color: #171A1F;
  border: 3px solid #3B444E;
  border-radius: 5px;
  padding: 26px 28px;
  margin-bottom: 44px;
}

.legal-toc h2 {
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #DBA03A;
  margin: 0 0 18px;
}

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

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

.legal-toc a {
  color: #E9ECEF;
  text-decoration: none;
  font-size: 0.94rem;
}

.legal-toc a:hover,
.legal-toc a:focus {
  color: #DBA03A;
  text-decoration: underline;
}

.legal-content h2 {
  color: #FFFFFF;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.3;
  margin: 42px 0 14px;
  padding-bottom: 10px;
  border-bottom: 3px solid #3B444E;
  scroll-margin-top: 24px;
}

.legal-content h3 {
  color: #DBA03A;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 26px 0 10px;
}

.legal-content p {
  color: #E9ECEF;
  margin: 0 0 1.05em;
}

.legal-content ul,
.legal-content ol {
  color: #E9ECEF;
  margin: 0 0 1.05em;
  padding-left: 24px;
}

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

.legal-content a {
  color: #DBA03A;
  text-decoration: underline;
}

.legal-content strong {
  color: #FFFFFF;
}

.legal-divider {
  border: none;
  border-top: 3px solid #3B444E;
  margin: 46px 0;
}

.legal-footer {
  background-color: #171A1F;
  border-top: 4px solid #3B444E;
  padding: 34px 24px 40px;
  margin-top: 54px;
}

.legal-footer-inner {
  max-width: 940px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: #E9ECEF;
}

.legal-footer-inner p {
  margin: 0;
}

.legal-footer-inner a {
  color: #DBA03A;
  text-decoration: none;
}

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

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

  .legal-header h1 {
    font-size: 1.25rem;
  }

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