:root {
  color-scheme: dark;
  --bg: #090909;
  --surface: #121212;
  --surface-2: #1a1a1a;
  --text: #f7f7f5;
  --muted: #aaa9a5;
  --line: #2d2d2b;
  --orange: #ff6a00;
  --orange-2: #ff8a1f;
  --soft: rgba(255, 106, 0, .12);
  --shadow: 0 24px 70px rgba(0, 0, 0, .28);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f5f1;
  --surface: #ffffff;
  --surface-2: #f2efea;
  --text: #171614;
  --muted: #66615b;
  --line: #ded9d2;
  --soft: rgba(255, 106, 0, .10);
  --shadow: 0 22px 60px rgba(60, 39, 18, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
  transition: background .25s ease, color .25s ease;
}
a { color: inherit; }
.skip-link { position: fixed; left: 16px; top: -70px; z-index: 100; padding: 12px 16px; background: var(--orange); color: #111; border-radius: 10px; font-weight: 800; }
.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px clamp(20px, 5vw, 72px);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; letter-spacing: .02em; }
.brand img { width: 48px; height: 48px; object-fit: contain; border-radius: 13px; }
nav { display: flex; align-items: center; gap: 8px; }
nav a, .theme-toggle { padding: 9px 12px; border-radius: 10px; text-decoration: none; color: var(--muted); font-size: .9rem; font-weight: 700; }
nav a:hover, nav a.active { color: var(--text); background: var(--surface-2); }
.theme-toggle { border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 1.05rem; }

.hero {
  position: relative;
  min-height: 440px;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: url("../assets/kota-807-open-mall.png") center/cover no-repeat;
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.68) 50%, rgba(0,0,0,.2) 100%), linear-gradient(0deg, var(--bg) 0%, transparent 45%); }
.hero-content { position: relative; width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 88px 0 70px; color: #fff; }
.eyebrow { margin: 0 0 10px; color: var(--orange-2); text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 800; }
h1 { max-width: 820px; margin: 0; font-size: clamp(2.5rem, 7vw, 5.2rem); line-height: .98; letter-spacing: -.055em; }
.hero-content > p:not(.eyebrow) { max-width: 650px; margin: 20px 0 0; color: #ddd; font-size: 1.06rem; }
.meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.meta span { padding: 7px 11px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; font-size: .77rem; color: #eee; }

.page-grid { width: min(1180px, calc(100% - 40px)); margin: 0 auto 90px; display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 34px; align-items: start; }
.toc { position: sticky; top: 100px; display: grid; gap: 6px; padding: 20px; border: 1px solid var(--line); background: var(--surface); border-radius: 20px; box-shadow: var(--shadow); }
.toc strong { margin-bottom: 6px; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--orange); }
.toc a { padding: 7px 9px; border-radius: 8px; text-decoration: none; color: var(--muted); font-size: .84rem; line-height: 1.3; }
.toc a:hover { color: var(--text); background: var(--surface-2); }

.policy-card { padding: clamp(24px, 5vw, 58px); background: var(--surface); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); }
.policy-card section { position: relative; padding: 32px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 96px; }
.policy-card section:first-child { padding-top: 0; }
.policy-card section:last-child { border-bottom: 0; padding-bottom: 0; }
.section-number { display: block; margin-bottom: 4px; color: var(--orange); font-size: .76rem; font-weight: 800; letter-spacing: .12em; }
h2 { margin: 0 0 16px; font-size: clamp(1.45rem, 3vw, 2.05rem); line-height: 1.2; letter-spacing: -.03em; }
h3 { margin: 0 0 10px; font-size: 1rem; }
p { margin: 0 0 14px; color: var(--muted); }
p:last-child { margin-bottom: 0; }
.policy-card a { color: var(--orange); text-underline-offset: 3px; }
ul { padding-left: 20px; margin: 0; color: var(--muted); }
li { margin: 7px 0; padding-left: 4px; }
li::marker { color: var(--orange); }
.highlight-box { margin-top: 22px; padding: 20px; border-left: 4px solid var(--orange); border-radius: 0 16px 16px 0; background: var(--soft); }
.highlight-box p { margin-top: 5px; }
.data-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 20px 0; }
.data-grid > div { padding: 20px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 17px; }
.purpose-list strong { color: var(--text); }
.contact-section { padding: 30px !important; margin-top: 32px; border: 1px solid rgba(255,106,0,.35) !important; border-radius: 20px; background: linear-gradient(135deg, var(--soft), transparent); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 18px; border-radius: 12px; text-decoration: none; font-weight: 800; }
.button.primary { background: linear-gradient(135deg, var(--orange-2), var(--orange)); color: #17100a; }
.button.secondary { border: 1px solid var(--line); background: var(--surface); color: var(--text); }

footer { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px 24px; padding: 34px 20px; border-top: 1px solid var(--line); color: var(--muted); text-align: center; }
footer img { width: 40px; height: 40px; object-fit: contain; border-radius: 11px; }
footer p { margin: 0; }
footer a { color: var(--orange); }
.back-to-top { position: fixed; right: 20px; bottom: 20px; width: 46px; height: 46px; display: none; border: 0; border-radius: 14px; background: var(--orange); color: #16100a; font-size: 1.2rem; font-weight: 900; cursor: pointer; box-shadow: var(--shadow); }
.back-to-top.visible { display: block; }

@media (max-width: 840px) {
  .site-header { min-height: 66px; padding-inline: 18px; }
  .brand span { display: none; }
  .brand img { width: 44px; height: 44px; }
  nav a { padding-inline: 9px; font-size: .8rem; }
  .hero { min-height: 390px; }
  .hero-content { padding-bottom: 58px; }
  .page-grid { display: block; margin-top: 0; }
  .toc { display: none; }
  .policy-card { border-radius: 22px; }
  .data-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .site-header nav a:first-child { display: none; }
  .page-grid { width: min(100% - 24px, 1180px); }
  .policy-card { padding: 24px 20px; }
  .contact-section { padding: 22px !important; }
  .button { width: 100%; }
}

@media print {
  .site-header, .toc, .back-to-top, footer { display: none !important; }
  .hero { min-height: auto; background: none; }
  .hero-overlay { display: none; }
  .hero-content { width: 100%; padding: 0 0 24px; color: #000; }
  .hero-content > p:not(.eyebrow), .meta span { color: #333; }
  .page-grid { width: 100%; display: block; margin: 0; }
  .policy-card { padding: 0; border: 0; box-shadow: none; }
}
