/* ============================================================
   BLACKDESERT LEGAL STYLES — Privacy Policy and Terms of Service
   Loaded ONLY by /privacy and /terms-of-service (never style.css)
   ============================================================ */

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

.legal-page {
  background-color: #14100C;
  color: #EFE4D4;
  font-family: "Avenir Next", "Segoe UI", "Trebuchet MS", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

.legal-page a {
  color: #C67B3B;
  text-decoration: none;
}

.legal-page a:hover {
  color: #3E8B7A;
}

/* ---------- Legal header (must stay a header element, never a section) ---------- */

.legal-header {
  background-color: #201A13;
  border-bottom: 2px solid #C67B3B;
}

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

.legal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  gap: 18px;
}

.legal-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.legal-crescent {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: transparent;
  box-shadow: 8px 5px 0 -4px #C67B3B;
  display: inline-block;
}

.legal-brand-word {
  color: #F9F0E0;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.22em;
}

.legal-home {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #EFE4D4;
  padding: 8px 14px;
  border: 1px solid #332A1E;
  border-radius: 4px;
}

.legal-home:hover {
  border-color: #C67B3B;
  color: #C67B3B;
}

.legal-title {
  padding: 44px 0 48px;
  max-width: 820px;
}

.legal-title h1 {
  font-size: 44px;
  line-height: 1.12;
  color: #F9F0E0;
  margin-bottom: 16px;
  font-weight: 800;
}

.legal-title .legal-updated {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #C67B3B;
  font-weight: 700;
}

.legal-title p {
  color: #A89A87;
  font-size: 16px;
  margin-top: 10px;
  max-width: 720px;
}

/* ---------- Layout ---------- */

.legal-body {
  padding: 64px 0 72px;
}

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

/* Scope isolation: legal content sections never carry background colors */
.legal-page .legal-content section {
  background-color: transparent !important;
}

/* ---------- Table of contents ---------- */

.toc {
  background-color: #201A13;
  border: 1px solid #332A1E;
  border-left: 3px solid #C67B3B;
  border-radius: 6px;
  padding: 28px 30px;
  margin-bottom: 52px;
}

.toc-title {
  display: block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: #3E8B7A;
  font-weight: 700;
  margin-bottom: 16px;
}

.toc a {
  display: block;
  color: #EFE4D4;
  font-size: 15px;
  line-height: 2;
}

.toc a:hover {
  color: #C67B3B;
}

/* ---------- Content sections ---------- */

.legal-content section {
  margin-bottom: 44px;
  border-bottom: 1px solid #332A1E;
  padding-bottom: 44px;
}

.legal-content section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.legal-content h2 {
  color: #F9F0E0;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 18px;
  padding-left: 18px;
  border-left: 4px solid #C67B3B;
  line-height: 1.25;
}

.legal-content h3 {
  color: #C67B3B;
  font-size: 18px;
  font-weight: 700;
  margin: 24px 0 10px;
}

.legal-content p {
  color: #E2D5C0;
  font-size: 16px;
  line-height: 1.85;
  margin-bottom: 16px;
}

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

.legal-content ul,
.legal-content ol {
  margin: 14px 0 18px 24px;
  color: #E2D5C0;
}

.legal-content li {
  margin-bottom: 10px;
  line-height: 1.8;
}

.legal-content ul li {
  list-style: none;
  position: relative;
  padding-left: 22px;
}

.legal-content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #3E8B7A;
}

.legal-content ol li {
  padding-left: 4px;
}

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

.legal-content em {
  color: #C9BBA6;
  font-style: italic;
}

.legal-content a {
  color: #C67B3B;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-content a:hover {
  color: #3E8B7A;
}

/* ---------- Legal footer ---------- */

.legal-footer {
  background-color: #0D0A07;
  border-top: 1px solid #332A1E;
  padding: 36px 0;
  color: #C9BBA6;
}

.legal-footer .container {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.legal-footer p {
  font-size: 14px;
  line-height: 1.9;
  color: #C9BBA6;
}

.legal-footer a {
  color: #C9BBA6;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-footer a:hover {
  color: #C67B3B;
}

.legal-footer .sep {
  margin: 0 8px;
  color: #C67B3B;
}

/* ---------- Responsive ---------- */

@media (max-width: 760px) {
  .legal-title h1 {
    font-size: 34px;
  }

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

  .legal-content h2 {
    font-size: 22px;
  }
}
