/* ==========================================================
   DAIKONGDEV - legal.css
   Shared stylesheet for the Privacy Policy and the
   Terms of Service pages. These pages load ONLY this file.
   ========================================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: #2A2115;
  background-color: #FBF7EF;
}

a {
  color: #2A2115;
  text-decoration: none;
}

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

/* ==========================================================
   LEGAL HEADER (solid imperial-gold background)
   ========================================================== */

.legal-header {
  background-color: #C9A227;
}

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

.legal-brand {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #2A2115;
}

.legal-home {
  font-size: 15px;
  font-weight: 700;
  color: #2A2115;
  border-bottom: 2px solid #2A2115;
  padding-bottom: 2px;
}

.legal-title-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 38px 24px 42px;
}

.legal-title-wrap h1 {
  font-size: 48px;
  font-weight: 900;
  color: #2A2115;
  line-height: 1.15;
  margin-bottom: 10px;
}

.legal-title-wrap p {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2A2115;
}

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

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

.legal-intro {
  padding: 44px 0 34px;
}

.legal-intro p {
  font-size: 18px;
  color: #2A2115;
  margin-bottom: 16px;
  max-width: 960px;
}

.legal-body {
  display: flex;
  gap: 56px;
  align-items: flex-start;
  padding: 0 0 56px;
}

/* Table of contents (sticky on wide screens) */
.toc {
  width: 280px;
  flex-shrink: 0;
  position: sticky;
  top: 20px;
  background-color: #F0E2C0;
  border: 2px solid #C9A227;
  padding: 26px;
}

.toc h2 {
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #2A2115;
  margin-bottom: 18px;
}

.toc ol {
  list-style: none;
}

.toc li {
  margin-bottom: 2px;
}

.toc a {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #2A2115;
  padding: 7px 10px;
  border-left: 3px solid #C9A227;
}

.toc a:hover {
  background-color: #FBF7EF;
}

/* Section blocks */
.legal-sections {
  flex: 1;
  min-width: 0;
}

.legal-sections section {
  padding: 8px 0 34px;
}

.legal-sections section h2 {
  font-size: 27px;
  font-weight: 800;
  color: #2A2115;
  padding-top: 30px;
  margin-bottom: 18px;
  border-top: 1px solid #E6D5AC;
}

.legal-sections section:first-child h2 {
  border-top: none;
}

.legal-sections p {
  color: #2A2115;
  margin-bottom: 15px;
}

.legal-sections ul {
  margin: 0 0 16px 24px;
}

.legal-sections li {
  color: #2A2115;
  margin-bottom: 8px;
}

.legal-sections a {
  text-decoration: underline;
}

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

.legal-footer {
  background-color: #C9A227;
  padding: 22px 24px;
  text-align: center;
  font-size: 14px;
  color: #2A2115;
}

.legal-footer a {
  color: #2A2115;
  font-weight: 700;
}

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

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

@media (max-width: 900px) {
  .legal-body {
    flex-direction: column;
  }
  .toc {
    position: static;
    width: 100%;
  }
  .legal-title-wrap h1 {
    font-size: 38px;
  }
}

@media (max-width: 600px) {
  .legal-header-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .legal-title-wrap h1 {
    font-size: 32px;
  }
}
