/* =========================================================
   DRAGON STORE
   SYARAT & KETENTUAN
   DARK GOLD THEME
========================================================= */

:root {
  --bg: #11110f;
  --bg-soft: #181815;
  --card: #1d1d19;
  --card-soft: #22221d;

  --text: #f4f1e8;
  --muted: #aaa79d;
  --muted-dark: #77756d;

  --gold: #c9a96e;
  --gold-light: #dfc58f;
  --gold-dark: #a98950;

  --border: #302f29;
  --border-light: #3a3932;

  --shadow:
    0 18px 50px rgba(0, 0, 0, 0.32);

  --shadow-soft:
    0 8px 25px rgba(0, 0, 0, 0.22);
}


/* =========================================================
   RESET
========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;

  background:
    radial-gradient(
      circle at 50% -10%,
      rgba(201, 169, 110, 0.08),
      transparent 32%
    ),
    var(--bg);

  color: var(--text);

  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  line-height: 1.65;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}


/* =========================================================
   NAVBAR
========================================================= */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;

  width: 100%;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  padding: 14px 5%;

  background:
    rgba(17, 17, 15, 0.88);

  border-bottom:
    1px solid rgba(201, 169, 110, 0.12);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}


/* =========================================================
   BRAND
========================================================= */

.brand {
  display: flex;
  align-items: center;

  gap: 11px;

  min-width: 0;
}

.brand-logo {
  width: 42px;
  height: 42px;

  display: block;

  object-fit: cover;

  border-radius: 12px;

  border:
    1px solid rgba(201, 169, 110, 0.22);

  box-shadow:
    0 5px 18px rgba(0, 0, 0, 0.3);
}

.brand-name {
  color: var(--text);

  font-size: 15px;
  font-weight: 750;

  line-height: 1.2;
}

.brand-subtitle {
  margin-top: 2px;

  color: var(--muted);

  font-size: 11px;

  line-height: 1.2;
}


/* =========================================================
   NAV ACTIONS
========================================================= */

.nav-actions {
  display: flex;
  align-items: center;

  gap: 9px;
}


/* =========================================================
   COIN PILL
========================================================= */

.coin-pill {
  min-height: 40px;

  display: inline-flex;
  align-items: center;

  gap: 6px;

  padding: 0 12px;

  border:
    1px solid var(--border-light);

  border-radius: 999px;

  background:
    rgba(29, 29, 25, 0.95);

  color: var(--text);

  box-shadow:
    0 5px 18px rgba(0, 0, 0, 0.2);

  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.coin-pill:hover {
  border-color:
    rgba(201, 169, 110, 0.55);

  background:
    #24241f;

  transform:
    translateY(-1px);
}

.coin-pill:active {
  transform:
    translateY(0);
}

.icon {
  width: 19px;
  height: 19px;
}

.coin-icon {
  fill: none;

  stroke: var(--gold);

  stroke-width: 1.7;

  stroke-linecap: round;
  stroke-linejoin: round;
}

#coinBalance {
  color: var(--text);

  font-size: 13px;
  font-weight: 750;
}

.coin-label {
  color: var(--muted);

  font-size: 12px;
}

.plus {
  color: var(--gold);

  font-size: 17px;
  font-weight: 700;
}


/* =========================================================
   BACK HOME
========================================================= */

.history-nav-btn {
  min-height: 40px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0 13px;

  border:
    1px solid var(--border-light);

  border-radius: 11px;

  background:
    var(--card);

  color: var(--muted);

  font-size: 12px;
  font-weight: 650;

  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.history-nav-btn:hover {
  color: var(--gold-light);

  border-color:
    rgba(201, 169, 110, 0.5);

  background:
    var(--card-soft);
}


/* =========================================================
   LEGAL PAGE
========================================================= */

.legal-page {
  width: min(100%, 900px);

  margin: 0 auto;

  padding:
    70px 20px
    80px;
}


/* =========================================================
   LEGAL HEADER
========================================================= */

.legal-header {
  position: relative;

  margin-bottom: 42px;

  padding-bottom: 32px;

  border-bottom:
    1px solid var(--border);
}

.legal-header::before {
  content: "";

  position: absolute;

  width: 230px;
  height: 230px;

  top: -100px;
  left: -90px;

  background:
    radial-gradient(
      circle,
      rgba(201, 169, 110, 0.08),
      transparent 70%
    );

  pointer-events: none;
}

.legal-label {
  display: inline-flex;

  padding:
    5px 10px;

  border:
    1px solid rgba(201, 169, 110, 0.3);

  border-radius: 999px;

  background:
    rgba(201, 169, 110, 0.07);

  color:
    var(--gold-light);

  font-size: 9px;
  font-weight: 800;

  letter-spacing:
    0.14em;
}

.legal-header h1 {
  position: relative;

  margin:
    15px 0
    10px;

  color:
    var(--text);

  font-size:
    clamp(30px, 5vw, 43px);

  line-height: 1.1;

  letter-spacing:
    -0.035em;
}

.legal-header > p {
  position: relative;

  max-width: 650px;

  margin: 0;

  color:
    var(--muted);

  font-size: 13px;
}

.legal-updated {
  margin-top: 18px;

  color:
    var(--muted-dark);

  font-size: 10px;
}


/* =========================================================
   LEGAL CONTENT
========================================================= */

.legal-content {
  display: flex;
  flex-direction: column;

  gap: 12px;
}


/* =========================================================
   LEGAL SECTION
========================================================= */

.legal-section {
  display: grid;

  grid-template-columns:
    46px 1fr;

  gap: 18px;

  padding:
    25px 24px;

  background:
    linear-gradient(
      145deg,
      rgba(29, 29, 25, 0.96),
      rgba(24, 24, 21, 0.96)
    );

  border:
    1px solid var(--border);

  border-radius: 18px;

  box-shadow:
    var(--shadow-soft);

  transition:
    border-color 0.2s ease,
    transform 0.2s ease,
    background 0.2s ease;
}

.legal-section:hover {
  border-color:
    rgba(201, 169, 110, 0.22);

  transform:
    translateY(-1px);

  background:
    linear-gradient(
      145deg,
      #20201b,
      #1b1b18
    );
}


/* =========================================================
   SECTION NUMBER
========================================================= */

.section-number {
  width: 40px;
  height: 40px;

  display: flex;
  align-items: center;
  justify-content: center;

  border:
    1px solid rgba(201, 169, 110, 0.2);

  border-radius: 11px;

  background:
    rgba(201, 169, 110, 0.07);

  color:
    var(--gold);

  font-size: 10px;
  font-weight: 800;

  letter-spacing:
    0.04em;
}


/* =========================================================
   SECTION CONTENT
========================================================= */

.legal-section h2 {
  margin:
    0 0 10px;

  color:
    var(--text);

  font-size: 17px;

  line-height: 1.3;

  letter-spacing:
    -0.015em;
}

.legal-section p {
  margin:
    0 0 12px;

  color:
    var(--muted);

  font-size: 12px;

  line-height: 1.75;
}

.legal-section p:last-child {
  margin-bottom: 0;
}


/* =========================================================
   LIST
========================================================= */

.legal-section ul {
  margin:
    4px 0
    15px;

  padding-left: 20px;
}

.legal-section li {
  margin-bottom: 5px;

  color:
    var(--muted);

  font-size: 12px;
}

.legal-section li::marker {
  color:
    var(--gold);
}


/* =========================================================
   LEGAL NOTE
========================================================= */

.legal-note {
  display: flex;
  flex-direction: column;

  gap: 4px;

  margin:
    17px 0;

  padding:
    15px 16px;

  border-left:
    2px solid var(--gold);

  border-top:
    1px solid rgba(201, 169, 110, 0.1);

  border-right:
    1px solid rgba(201, 169, 110, 0.1);

  border-bottom:
    1px solid rgba(201, 169, 110, 0.1);

  border-radius: 0 12px 12px 0;

  background:
    rgba(201, 169, 110, 0.045);
}

.legal-note strong {
  color:
    var(--gold-light);

  font-size: 11px;
}

.legal-note span {
  color:
    var(--muted);

  font-size: 11px;

  line-height: 1.65;
}


/* =========================================================
   COIN INFO
========================================================= */

.coin-info {
  display: flex;
  align-items: center;

  width: fit-content;

  gap: 12px;

  margin:
    17px 0;

  padding:
    13px 17px;

  border:
    1px solid rgba(201, 169, 110, 0.18);

  border-radius: 13px;

  background:
    rgba(201, 169, 110, 0.055);
}

.coin-value {
  color:
    var(--gold-light);

  font-size: 12px;
  font-weight: 800;
}

.coin-equals {
  color:
    var(--muted-dark);

  font-size: 12px;
}

.coin-price {
  color:
    var(--text);

  font-size: 12px;
  font-weight: 750;
}


/* =========================================================
   CONTACT BOX
========================================================= */

.contact-box {
  display: grid;

  grid-template-columns:
    repeat(2, 1fr);

  gap: 10px;

  margin-top: 18px;
}

.contact-box a {
  display: flex;
  flex-direction: column;

  gap: 3px;

  padding:
    15px 16px;

  border:
    1px solid var(--border);

  border-radius: 13px;

  background:
    #181815;

  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.contact-box a:hover {
  border-color:
    rgba(201, 169, 110, 0.35);

  background:
    #20201b;

  transform:
    translateY(-1px);
}

.contact-box span {
  color:
    var(--muted-dark);

  font-size: 9px;

  text-transform: uppercase;

  letter-spacing:
    0.08em;
}

.contact-box strong {
  color:
    var(--gold-light);

  font-size: 11px;

  word-break: break-word;
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
  padding:
    28px 20px
    38px;

  border-top:
    1px solid var(--border);

  background:
    rgba(17, 17, 15, 0.8);

  text-align: center;
}

.site-footer p {
  margin: 0;

  color:
    #68665e;

  font-size: 9px;
}


/* =========================================================
   RESPONSIVE TABLET
========================================================= */

@media (max-width: 760px) {

  .navbar {
    padding:
      12px 4%;
  }

  .brand-subtitle {
    display: none;
  }

  .brand-name {
    font-size: 14px;
  }

  .brand-logo {
    width: 39px;
    height: 39px;

    border-radius: 11px;
  }

  .history-nav-btn {
    padding:
      0 10px;

    font-size: 11px;
  }

  .coin-pill {
    min-height: 38px;

    padding:
      0 9px;
  }

  .coin-label {
    display: none;
  }

  .legal-page {
    padding:
      50px 14px
      60px;
  }

  .legal-section {
    grid-template-columns:
      40px 1fr;

    gap: 14px;

    padding:
      21px 19px;
  }

  .section-number {
    width: 36px;
    height: 36px;
  }

}


/* =========================================================
   RESPONSIVE MOBILE
========================================================= */

@media (max-width: 520px) {

  .navbar {
    gap: 8px;
  }

  .nav-actions {
    gap: 6px;
  }

  .brand {
    gap: 8px;
  }

  .brand-logo {
    width: 36px;
    height: 36px;
  }

  .brand-name {
    font-size: 13px;
  }

  .history-nav-btn {
    min-height: 36px;

    padding:
      0 9px;

    font-size: 10px;
  }

  .coin-pill {
    min-height: 36px;

    padding:
      0 8px;
  }

  .coin-icon {
    width: 17px;
    height: 17px;
  }

  #coinBalance {
    font-size: 11px;
  }

  .plus {
    font-size: 15px;
  }

  .legal-page {
    padding:
      38px 12px
      50px;
  }

  .legal-header {
    margin-bottom: 28px;

    padding-bottom: 25px;
  }

  .legal-header h1 {
    font-size: 29px;
  }

  .legal-header > p {
    font-size: 11px;

    line-height: 1.7;
  }

  .legal-updated {
    font-size: 9px;
  }

  .legal-section {
    grid-template-columns:
      1fr;

    gap: 13px;

    padding:
      19px 17px;

    border-radius: 16px;
  }

  .section-number {
    width: 34px;
    height: 34px;

    border-radius: 9px;
  }

  .legal-section h2 {
    font-size: 16px;
  }

  .legal-section p,
  .legal-section li {
    font-size: 11px;

    line-height: 1.7;
  }

  .legal-note {
    padding:
      13px 14px;
  }

  .legal-note span {
    font-size: 10px;
  }

  .coin-info {
    width: 100%;

    justify-content: center;
  }

  .contact-box {
    grid-template-columns:
      1fr;
  }

}


/* =========================================================
   VERY SMALL SCREEN
========================================================= */

@media (max-width: 360px) {

  .brand-name {
    font-size: 12px;
  }

  .brand-logo {
    width: 33px;
    height: 33px;
  }

  .history-nav-btn {
    padding:
      0 7px;

    font-size: 9px;
  }

  .coin-pill {
    padding:
      0 7px;
  }

  .legal-page {
    padding:
      32px 10px
      45px;
  }

  .legal-header h1 {
    font-size: 26px;
  }

  .legal-section {
    padding:
      17px 14px;
  }

}