/* ============================================================
   SAD NUGGIE LTD - LEGAL STYLESHEET
   Shared by privacy.html and terms-of-service.html
   ============================================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.8;
  color: #F1ECE7;
  background-color: #141110;
  overflow-x: hidden;
}

.legal-page {
  overflow-x: hidden;
}

a {
  color: #D9943B;
  text-decoration: none;
}

a:hover {
  color: #F0D9AC;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

.legal-header {
  background: #141110;
  border-bottom: 4px solid #D9943B;
  padding: 40px 0 44px;
}

.legal-brand {
  display: inline-block;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #F0D9AC;
  margin-bottom: 28px;
}

.legal-brand:hover {
  color: #D9943B;
}

.legal-header h1 {
  font-size: 48px;
  line-height: 1.1;
  font-weight: 700;
  color: #F0D9AC;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.legal-date {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #D9943B;
}

/* ---------- Content layout ---------- */

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

.legal-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: start;
}

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

.toc {
  background: #221C15;
  border: 1px solid #3A3128;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toc-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #D9943B;
  margin-bottom: 14px;
}

.toc a {
  display: block;
  padding: 7px 0;
  font-size: 15px;
  color: #F1ECE7;
  border-bottom: 1px solid #3A3128;
}

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

/* ---------- Legal body sections ---------- */

.legal-body {
  background: #221C15;
  border: 1px solid #3A3128;
  padding: 40px 44px;
}

/* Scope isolation: sections stay transparent within the content area */
.legal-page .legal-content section {
  background-color: transparent !important;
}

.legal-body section {
  padding: 8px 0 30px;
  border-bottom: 1px solid #3A3128;
  margin-bottom: 30px;
}

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

.legal-body h2 {
  font-size: 26px;
  line-height: 1.3;
  color: #F0D9AC;
  border-left: 4px solid #D9943B;
  padding-left: 16px;
  margin-bottom: 18px;
}

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

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

/* ---------- Footer ---------- */

.legal-footer {
  background: #D9943B;
  padding: 34px 0;
  text-align: center;
}

.legal-footer .legal-home-link {
  display: inline-block;
  background: #141110;
  color: #F0D9AC;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 14px 28px;
  margin-bottom: 20px;
}

.legal-footer .legal-home-link:hover {
  background: #221C15;
  color: #D9943B;
}

.legal-footer p {
  color: #141110;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.legal-footer .legal-foot-links {
  margin-top: 8px;
}

.legal-footer .legal-foot-links a {
  color: #141110;
  text-decoration: underline;
  font-weight: 700;
}

.legal-footer .legal-foot-links a:hover {
  color: #221C15;
}

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

@media (max-width: 860px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .legal-header h1 {
    font-size: 38px;
  }

  .legal-body {
    padding: 30px 26px;
  }
}
