/* Difgen Holdings Pte. Ltd. — shared legal stylesheet
   Used by privacy.html and terms-of-service.html only.
   Palette
   SPIRE       #E8EEF0
   MEMO        #242E32
   BUKKIT      #AB4614
   CRES        #181E20
   SPIRE-PANEL #F0E8D8
   RIVET-BRASS #BC603F
   FOLDER-TAUPE#818776
*/

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.78;
  background-color: #E8EEF0;
  color: #242E32;
  overflow-x: hidden;
}

a {
  color: #AB4614;
}

a:hover {
  text-decoration: underline;
}

/* ---------- legal header ---------- */

.legal-header {
  background-color: #181E20;
  border-bottom: 6px solid #AB4614;
}

.legal-header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 26px 24px 24px;
}

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

.legal-header-rivet {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: #BC603F;
  border: 3px solid #E8EEF0;
  flex-shrink: 0;
}

.legal-header-brand a {
  font-size: 18px;
  font-weight: 700;
  color: #E8EEF0;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.legal-header-brand a:hover {
  color: #BC603F;
  text-decoration: none;
}

.legal-header h1 {
  font-family: "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 40px;
  line-height: 1.12;
  color: #E8EEF0;
  margin: 0 0 10px;
}

.legal-header-note {
  font-size: 14px;
  line-height: 1.6;
  color: #F0E8D8;
  margin: 0;
}

.legal-header-nav {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.legal-header-nav a {
  color: #F0E8D8;
  text-decoration: none;
  border-bottom: 1px solid #2C3538;
  padding-bottom: 2px;
}

.legal-header-nav a:hover {
  color: #BC603F;
  border-bottom-color: #BC603F;
  text-decoration: none;
}

/* ---------- legal content ---------- */

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

.legal-content section {
  background-color: transparent !important;
  background: transparent !important;
}

.legal-intro {
  background-color: #F0E8D8;
  border: 1px solid #D6CBBB;
  border-left: 8px solid #AB4614;
  padding: 26px 30px;
  margin-bottom: 36px;
}

.legal-intro p {
  margin: 0 0 12px;
  font-size: 17px;
  line-height: 1.78;
  color: #242E32;
}

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

.legal-content h2 {
  font-family: "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 26px;
  line-height: 1.25;
  color: #242E32;
  margin: 44px 0 14px;
  padding-top: 12px;
  border-top: 2px solid #C9BFA9;
}

.legal-content h3 {
  font-family: Georgia, serif;
  font-size: 19px;
  line-height: 1.35;
  color: #242E32;
  margin: 26px 0 10px;
}

.legal-content p {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.8;
  color: #242E32;
}

.legal-content ul,
.legal-content ol {
  margin: 0 0 18px;
  padding-left: 24px;
}

.legal-content li {
  margin-bottom: 9px;
  font-size: 16px;
  line-height: 1.75;
  color: #242E32;
}

.legal-content a {
  color: #AB4614;
  border-bottom: 1px solid #BC603F;
}

.legal-content a:hover {
  color: #181E20;
  border-bottom-color: #181E20;
}

/* ---------- table of contents ---------- */

.legal-toc {
  background-color: #F0E8D8;
  border: 1px solid #D6CBBB;
  border-top: 6px solid #181E20;
  padding: 24px 28px;
  margin-bottom: 40px;
}

.legal-toc h2 {
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #AB4614;
  margin: 0 0 14px;
  padding: 0;
  border-top: none;
}

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

.legal-toc li {
  margin-bottom: 7px;
  font-size: 15px;
  break-inside: avoid;
}

.legal-toc a {
  color: #242E32;
  border-bottom: 1px solid #C9BFA9;
  text-decoration: none;
}

.legal-toc a:hover {
  color: #AB4614;
  border-bottom-color: #AB4614;
  text-decoration: none;
}

/* ---------- address block ---------- */

.legal-address {
  background-color: #181E20;
  color: #E8EEF0;
  padding: 22px 26px;
  margin: 30px 0;
  border-left: 6px solid #AB4614;
}

.legal-address p {
  color: #E8EEF0;
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.65;
}

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

.legal-address a {
  color: #F0E8D8;
  border-bottom: 1px solid #AB4614;
}

/* ---------- legal footer ---------- */

.legal-footer {
  background-color: #181E20;
  color: #E8EEF0;
  padding: 34px 24px 40px;
}

.legal-footer-inner {
  max-width: 860px;
  margin: 0 auto;
}

.legal-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin-bottom: 18px;
  font-size: 15px;
}

.legal-footer-links a {
  color: #E8EEF0;
  text-decoration: none;
  border-bottom: 1px solid #2C3538;
  padding-bottom: 1px;
}

.legal-footer-links a:hover {
  color: #BC603F;
  border-bottom-color: #BC603F;
  text-decoration: none;
}

.legal-footer p {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.65;
  color: #E8EEF0;
}

.legal-footer a {
  color: #F0E8D8;
  border-bottom: 1px solid #2C3538;
}

.legal-footer a:hover {
  color: #BC603F;
  text-decoration: none;
}

.legal-footer-copy {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #2C3538;
  font-size: 13px;
  color: #E8EEF0;
}

.legal-footer-rivet {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #BC603F;
  margin-right: 7px;
}

/* ---------- responsive ---------- */

@media (max-width: 720px) {
  .legal-header h1 {
    font-size: 30px;
  }

  .legal-toc ol {
    columns: 1;
  }

  .legal-content {
    padding: 40px 24px 52px;
  }

  .legal-intro {
    padding: 22px 24px;
  }
}
