/* Shared styles for the public legal pages (Kebijakan Privasi, Syarat & Ketentuan).
   Design tokens mirror design/stitch_temanbelajar/academic_rigor_cognitive_clarity/DESIGN.md. */

:root {
  --paper: #fbfbf9;
  --surface: #f4fbf9;
  --surface-low: #eef5f3;
  --white: #ffffff;
  --ink: #111817;
  --on-surface: #161d1c;
  --muted: #414943;
  --outline: #c1c8c1;
  --outline-strong: #9aa39d;
  --pine: #002718;
  --pine-container: #133e2b;
  --pine-soft: #bfedd2;
  --clay: #9d4225;
  --clay-soft: #ffdbd0;
  --amber-soft: #fef3c7;
  --amber-border: #fde68a;
  --amber-text: #92400e;
  --radius: 8px;
  --display: "Plus Jakarta Sans", "Inter", sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--on-surface);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--pine-container); text-decoration-color: var(--outline-strong); text-underline-offset: 2px; }
a:hover { text-decoration-color: var(--pine-container); }

.site-header {
  border-bottom: 1px solid var(--outline);
  background: var(--white);
}

.site-header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--pine); }
.brand img { width: 36px; height: 36px; object-fit: contain; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 16px; letter-spacing: -0.01em; }
.brand-name span { color: var(--clay); }
.brand-tag { display: block; font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

.header-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--pine-container);
  text-decoration: none;
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  padding: 8px 14px;
  white-space: nowrap;
}
.header-link:hover { border-color: var(--pine-container); }

.page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 24px 72px;
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}

@media (min-width: 960px) {
  .page { grid-template-columns: 260px minmax(0, 1fr); align-items: start; }
  .toc { position: sticky; top: 24px; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay);
  margin: 0 0 8px;
}

h1 {
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--pine);
  margin: 0 0 12px;
}

.lede { font-size: 16px; line-height: 1.7; color: var(--muted); margin: 0 0 20px; }

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--outline);
  background: var(--white);
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.notice {
  border: 1px solid var(--amber-border);
  background: var(--amber-soft);
  color: var(--amber-text);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.6;
  margin: 16px 0 0;
}

.toc {
  border: 1px solid var(--outline);
  background: var(--white);
  border-radius: 12px;
  padding: 16px;
}
.toc h2 {
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}
.toc ol { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.5; }
.toc li { margin: 0 0 7px; }
.toc a { color: var(--on-surface); text-decoration: none; }
.toc a:hover { color: var(--pine-container); text-decoration: underline; }

.document {
  border: 1px solid var(--outline);
  background: var(--white);
  border-radius: 12px;
  padding: clamp(20px, 4vw, 40px);
}

.document section { margin: 0 0 32px; scroll-margin-top: 24px; }
.document section:last-child { margin-bottom: 0; }

h2 {
  font-family: var(--display);
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--pine);
  margin: 0 0 10px;
  display: flex;
  gap: 10px;
  align-items: baseline;
}
h2 .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--surface-low);
  border: 1px solid var(--outline);
  color: var(--pine-container);
  font-size: 12px;
  font-weight: 700;
  font-family: var(--body);
  transform: translateY(-2px);
}

h3 {
  font-family: var(--display);
  font-size: 15px;
  color: var(--on-surface);
  margin: 18px 0 6px;
}

p { margin: 0 0 12px; }
ul, ol { margin: 0 0 12px; padding-left: 22px; }
li { margin: 0 0 6px; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 16px;
  font-size: 13px;
}
th, td {
  text-align: left;
  vertical-align: top;
  border: 1px solid var(--outline);
  padding: 8px 10px;
}
th { background: var(--surface-low); font-weight: 600; color: var(--pine); }

.callout {
  border-left: 3px solid var(--pine-container);
  background: var(--surface-low);
  padding: 12px 14px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 14px;
  margin: 12px 0 16px;
}

.contact-box {
  border: 1px solid var(--outline);
  background: var(--surface-low);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 14px;
}
.contact-box p:last-child { margin-bottom: 0; }

.site-footer {
  border-top: 1px solid var(--outline);
  background: var(--pine);
  color: var(--paper);
}
.site-footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}
.site-footer a { color: var(--pine-soft); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.footer-note { color: rgba(251, 251, 249, 0.7); }

@media print {
  body { background: #fff; font-size: 12pt; }
  .site-header, .site-footer, .toc, .header-link, .notice { display: none !important; }
  .page { display: block; max-width: none; padding: 0; }
  .document { border: 0; padding: 0; }
  h1 { font-size: 22pt; }
  h2 { font-size: 14pt; }
  a { color: #000; text-decoration: none; }
}
