/* ============================================================
   YandiDesign — Legal Center
   Minimalist stylesheet · no external dependencies
   ============================================================ */

:root {
  --bg: #ffffff;
  --fg: #18181b;
  --muted: #6b7280;
  --border: #e5e7eb;
  --accent: #2563eb;
  --accent-soft: #eff6ff;
  --ph-bg: #fef3c7;      /* placeholder highlight */
  --ph-fg: #92400e;
  --radius: 10px;
  --max: 780px;
  --header-h: 60px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Language switching ----------
   Every bilingual element carries data-lang="en" or data-lang="id".
   The active language lives on <body data-lang="...">.            */
body[data-lang="en"] [data-lang="id"] { display: none !important; }
body[data-lang="id"] [data-lang="en"] { display: none !important; }

/* ---------- Typography ---------- */
h1, h2, h3 {
  line-height: 1.3;
  margin: 0 0 12px;
}

h1 { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: 20px; font-weight: 650; margin-top: 8px; }
h3 { font-size: 16px; font-weight: 650; margin: 20px 0 6px; }

p { margin: 0 0 14px; }

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.2px;
  color: var(--fg);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.brand .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

.brand:hover { text-decoration: none; }

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
}

.nav a { color: var(--muted); }
.nav a:hover { color: var(--fg); text-decoration: none; }

/* ---------- Language toggle ---------- */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: #fafafa;
}

.lang-toggle button {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 14px;
  cursor: pointer;
  color: var(--muted);
  transition: background 0.15s ease, color 0.15s ease;
}

.lang-toggle button:hover { color: var(--fg); }
.lang-toggle button.active {
  background: var(--fg);
  color: #ffffff;
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 24px 110px;
}

/* ---------- Home page ---------- */
.hero {
  text-align: center;
  padding: 40px 0 12px;
}

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 12px;
}

.hero p.lead {
  max-width: 560px;
  margin: 0 auto 0;
  color: var(--muted);
  font-size: 17px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 52px;
}

.card {
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  color: var(--fg);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  background: #fff;
}

.card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.08);
  text-decoration: none;
  transform: translateY(-2px);
}

.card h2 { margin-bottom: 8px; font-size: 18px; }
.card p { color: var(--muted); font-size: 14.5px; margin-bottom: 14px; }

.card-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

.home-note {
  margin-top: 48px;
  padding: 16px 20px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 13.5px;
}

/* ---------- Document pages ---------- */
.doc-head { margin-bottom: 36px; }

.doc-head h1 { margin-bottom: 8px; }

.doc-head p { color: var(--muted); margin: 0; }

.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

/* Table of contents */
.toc {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fafafa;
  padding: 20px 24px;
  margin-bottom: 44px;
}

.toc h2 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 12px;
}

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

@media (max-width: 620px) {
  .toc ol { columns: 1; }
}

.toc li { margin-bottom: 5px; }
.toc a { color: var(--muted); }
.toc a:hover { color: var(--accent); }

/* Document sections */
.section {
  padding: 28px 0;
  border-top: 1px solid var(--border);
}

.section:first-of-type { border-top: 0; }

.section h2 {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.section p:last-child,
.section ul:last-child,
.section ol:last-child { margin-bottom: 0; }

/* Placeholder highlight — makes [PLACEHOLDER] easy to spot */
.ph {
  background: var(--ph-bg);
  color: var(--ph-fg);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 0.92em;
  white-space: nowrap;
}

.contact-block {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  background: #fafafa;
  font-size: 14.5px;
}

.contact-block p { margin-bottom: 6px; }
.contact-block p:last-child { margin-bottom: 0; }

/* ---------- FAQ (native <details> accordion) ---------- */
.faq { margin-top: 12px; }

.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 20px;
  font-weight: 600;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  color: var(--muted);
  transition: transform 0.15s ease;
}

.faq details[open] summary::after { transform: rotate(45deg); }

.faq details > div {
  padding: 0 20px 16px;
  color: var(--muted);
  font-size: 14.5px;
}

.faq details > div p:last-child { margin-bottom: 0; }

/* Section heading used on the contact page */
.section-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin: 44px 0 14px;
}

.section-title:first-of-type { margin-top: 0; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 26px 24px 40px;
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13.5px;
}

.footer-links { display: flex; gap: 18px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--fg); }
