/* F1 Library — halaman Tentang, Privasi & Ketentuan, Hak Cipta */

html.theme-light {
  --bg-main: #fafafa; --bg-surface: #ffffff; --text-main: #18181b; --text-muted: #5b6676;
  --border-color: #d8dee6; --soft: #eef0f4; --accent: #d95314; --accent-bg: #fff1e8;
}
html.theme-sepia {
  --bg-main: #f6ebd4; --bg-surface: #f6efe2; --text-main: #2b2118; --text-muted: #6e5f4f;
  --border-color: #d5cbb8; --soft: #e6decb; --accent: #b8430f; --accent-bg: rgba(217, 83, 20, 0.09);
}
html.theme-dark {
  --bg-main: #11141d; --bg-surface: #171c28; --text-main: #e2e8f0; --text-muted: #9aa7bb;
  --border-color: #2c364a; --soft: #222938; --accent: #ff8a4c; --accent-bg: rgba(242, 101, 34, 0.12);
}

/* Bahasa: hanya blok sesuai <html lang> yang tampil */
[data-l] { display: none; }
html[lang="id"] [data-l="id"],
html[lang="en"] [data-l="en"] { display: revert; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg-main);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  transition: background-color .25s ease, color .25s ease;
}
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

.l-wrap { max-width: 720px; margin: 0 auto; padding: 20px 20px 56px; }

/* Bilah atas */
.l-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 0 18px; }
.l-back {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text-muted);
  font-size: 15px; padding: 8px 14px 8px 10px; border-radius: 999px; background: var(--soft);
}
.l-back:hover { color: var(--text-main); }
.l-lang { display: inline-flex; padding: 4px; gap: 2px; border-radius: 999px; background: var(--soft); }
.l-lang button {
  border: 0; background: transparent; color: var(--text-muted); font: inherit; font-size: 14px;
  padding: 6px 14px; border-radius: 999px; cursor: pointer;
}
html[lang="id"] .l-lang button[data-setlang="id"],
html[lang="en"] .l-lang button[data-setlang="en"] {
  background: var(--bg-surface); color: var(--text-main); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.12);
}

/* Merek & menu halaman */
.l-brand { display: flex; align-items: center; gap: 12px; margin: 8px 0 18px; text-decoration: none; color: var(--text-main); }
.l-brand img { width: 40px; height: 40px; border-radius: 12px; }
.l-brand span { font-family: Georgia, Cambria, "Times New Roman", serif; font-weight: 700; font-size: 20px; }
.l-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.l-nav a {
  text-decoration: none; color: var(--text-muted); font-size: 15px; padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--border-color);
}
.l-nav a:hover { color: var(--text-main); }
.l-nav a[aria-current="page"] { background: var(--soft); color: var(--text-main); font-weight: 600; border-color: transparent; }

/* Isi */
.l-content h1 {
  font-family: Georgia, Cambria, "Times New Roman", serif;
  font-size: clamp(30px, 6vw, 40px); line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 14px;
}
.l-lead { font-size: 19px; line-height: 1.7; color: var(--text-muted); margin: 0 0 8px; }
.l-updated { font-size: 14px; color: var(--text-muted); margin: 0 0 8px; }
.l-content h2 {
  font-family: Georgia, Cambria, "Times New Roman", serif;
  font-size: 24px; line-height: 1.3; margin: 40px 0 10px; letter-spacing: -0.01em;
}
.l-content h3 { font-size: 17px; margin: 22px 0 4px; }
.l-content p { margin: 0 0 16px; }
.l-content ul { padding-left: 22px; margin: 0 0 16px; }
.l-content li { margin-bottom: 8px; }
.l-box {
  background: var(--accent-bg); border-left: 4px solid var(--accent); border-radius: 0 14px 14px 0;
  padding: 16px 20px; margin: 24px 0;
}
.l-box p:last-child, .l-box ul:last-child { margin-bottom: 0; }
.l-box strong { color: var(--text-main); }
.l-mail { font-weight: 600; word-break: break-all; }

/* Kaki halaman */
.l-foot {
  margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--border-color);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  font-size: 15px; color: var(--text-muted);
}
.l-foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.l-foot nav a { color: var(--text-muted); text-decoration: none; }
.l-foot nav a:hover { color: var(--text-main); text-decoration: underline; }
.l-foot nav a[aria-current="page"] { color: var(--text-main); font-weight: 600; }

@media (max-width: 480px) {
  .l-lead { font-size: 17px; }
  .l-content h2 { font-size: 22px; }
}
