/*
 * Halaman legal temanlentera.id (privasi, ketentuan, hapus akun).
 * Token warna, font, nav, dan footer SAMA dengan landing (temanlentera-landing.html,
 * fungsi themeVars). Terang secara bawaan seperti landing — tidak mengikuti mode
 * gelap sistem. Tombol bulan/matahari mengganti tema halaman ini saja (tak disimpan,
 * sama seperti landing).
 */
:root {
  --bg: #FAF8F3; --bg2: #F2EFE7; --card: #FFFFFF; --navbg: rgba(250,248,243,.82);
  --ink: #2B2A33; --ink2: #585563; --ink3: #8B8794;
  --line: rgba(40,34,48,.09); --shadow: rgba(70,60,90,.1);
  --mintS: #E6F4EC; --mintD: #3F9D72; --peachS: #FBEAE1; --clayD: #CD7A54;
  --lavS: #ECE8F8; --lavD: #7E72B8; --sage: #5C8166; --glow: #FCE7B8;
  --accentD: #3F9D72; --accentGlow: rgba(63,157,114,.32);
  --danger: #B5483C; --dangerGlow: rgba(181,72,60,.26);
  --errInk: #9A4A2C; --okInk: #2F6B4B;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #16141B; --bg2: #1C1A22; --card: #232029; --navbg: rgba(22,20,27,.82);
  --ink: #F1EEE7; --ink2: #B9B5C1; --ink3: #847F8D;
  --line: rgba(255,255,255,.09); --shadow: rgba(0,0,0,.4);
  --mintS: #20342A; --mintD: #6FC79B; --peachS: #3A2A22; --clayD: #E39B72;
  --lavS: #2A2540; --lavD: #A99AE0; --sage: #84C9A3; --glow: #FCE7B8;
  --accentD: #6FC79B; --accentGlow: rgba(111,199,155,.28);
  --danger: #B5483C; --dangerGlow: rgba(0,0,0,.35);
  --errInk: #F0B08F; --okInk: #9ED8B6;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--ink);
  font-family: 'Nunito Sans', system-ui, sans-serif; -webkit-font-smoothing: antialiased;
  transition: background .4s ease, color .4s ease;
}
a { text-decoration: none; color: inherit; }
button, input { font-family: inherit; }
[hidden] { display: none !important; }

/* ---------- Nav (identik dengan landing) ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  background: var(--navbg); border-bottom: 1px solid var(--line);
}
.nav-inner { max-width: 1180px; margin: 0 auto; padding: 15px 28px; display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 11px; margin-right: auto; }
.mark { width: 34px; height: 34px; border-radius: 11px; background: var(--sage); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mark i { width: 13px; height: 13px; border-radius: 50%; background: #FCE7B8; box-shadow: 0 0 10px 2px rgba(252,231,184,.8); }
.brand b { font-family: 'Newsreader', serif; font-size: 22px; font-weight: 500; color: var(--ink); letter-spacing: -.01em; }
.navlink { font-size: 14.5px; font-weight: 600; color: var(--ink2); padding: 6px 4px; }
.navlink:hover { color: var(--ink); }
.theme-btn {
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--card);
  cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; flex-shrink: 0;
}
.theme-btn .sun, :root[data-theme="dark"] .theme-btn .moon { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: block; }
.cta {
  display: inline-flex; align-items: center; padding: 10px 20px; border-radius: 13px;
  background: var(--accentD); color: #fff; font-size: 14px; font-weight: 700;
  box-shadow: 0 6px 18px var(--accentGlow); flex-shrink: 0;
}
.navdl {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; border-radius: 13px; flex-shrink: 0;
  border: 1.5px solid var(--accentD); color: var(--accentD); font-size: 14px; font-weight: 700;
}
.navdl:hover, .navdl[aria-current="page"] { background: var(--mintS); }

/* ---------- Kepala halaman ---------- */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; top: -150px; left: 50%; transform: translateX(-50%);
  width: 520px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, var(--glow), transparent 68%); opacity: .5; pointer-events: none;
}
.hero-inner { position: relative; max-width: 760px; margin: 0 auto; padding: 72px 28px 40px; text-align: center; }
.eyebrow {
  font-family: 'Spline Sans Mono', monospace; font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accentD); font-weight: 600; margin: 0 0 16px;
}
h1 {
  font-family: 'Newsreader', serif; font-weight: 500; font-size: clamp(38px, 5.6vw, 56px); line-height: 1.08;
  letter-spacing: -.02em; color: var(--ink); margin: 0 0 18px; text-wrap: balance;
}
.lead { font-size: clamp(16.5px, 2vw, 18.5px); line-height: 1.62; color: var(--ink2); max-width: 560px; margin: 0 auto 24px; text-wrap: pretty; }
.updated {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 15px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); box-shadow: 0 4px 14px var(--shadow);
  font-family: 'Spline Sans Mono', monospace; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink2); font-weight: 500;
}
.updated::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accentD); }
.tabs-wrap { margin-top: 28px; }
.tabs {
  display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px; padding: 5px;
  border-radius: 16px; background: var(--bg2); border: 1px solid var(--line);
}
.tabs a { padding: 9px 16px; border-radius: 12px; font-size: 14px; font-weight: 700; color: var(--ink2); }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { background: var(--card); color: var(--ink); box-shadow: 0 2px 10px var(--shadow); }

/* ---------- Isi ---------- */
.content { max-width: 760px; margin: 0 auto; padding: 8px 28px 96px; }
.content > :first-child { margin-top: 0; }
.content h2 {
  font-family: 'Newsreader', serif; font-weight: 500; font-size: clamp(25px, 3.2vw, 30px); line-height: 1.2;
  letter-spacing: -.015em; color: var(--ink); margin: 56px 0 14px;
}
.content h3 { font-size: 17px; font-weight: 800; color: var(--ink); margin: 30px 0 8px; }
.content p, .content li { font-size: 16.5px; line-height: 1.75; color: var(--ink2); }
.content p { margin: 0 0 14px; }
.content ul { margin: 0 0 14px; padding-left: 22px; }
.content li { margin: 6px 0; padding-left: 2px; }
.content li::marker { color: var(--accentD); }
.content ul ul { margin: 6px 0 0; }
.content strong { color: var(--ink); font-weight: 700; }
.content a:not(.btn) {
  color: var(--accentD); font-weight: 600; text-decoration: underline;
  text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere;
}

.card {
  border-radius: 20px; background: var(--card); border: 1px solid var(--line);
  box-shadow: 0 4px 14px var(--shadow); padding: 22px 24px; margin: 0 0 26px;
}
.content .card-title { font-size: 16px; font-weight: 800; color: var(--ink); margin: 0 0 6px; }
.card ul, .card p:last-child { margin-bottom: 0; }

.table { border-radius: 20px; background: var(--card); border: 1px solid var(--line); overflow: hidden; margin: 18px 0 16px; }
.table table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; vertical-align: top; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.table th {
  background: var(--bg2); font-family: 'Spline Sans Mono', monospace; font-size: 11.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink3); font-weight: 600;
}
.table td { font-size: 15px; line-height: 1.6; color: var(--ink2); }
.table td:first-child { width: 38%; color: var(--ink); font-weight: 700; }
.table tr:last-child td { border-bottom: 0; }

/* ---------- Formulir (hapus akun) — gaya kolom & tombol waitlist landing ---------- */
.form { border-radius: 20px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 4px 14px var(--shadow); padding: 26px 24px; margin: 0 0 22px; }
.form .row { margin: 0 0 18px; }
.form label { display: block; font-size: 15px; font-weight: 700; color: var(--ink); margin: 0 0 8px; }
.input {
  width: 100%; border: 1px solid var(--line); outline: none; background: var(--bg); border-radius: 14px;
  padding: 15px 18px; font-size: 15px; color: var(--ink);
}
.input::placeholder { color: var(--ink3); }
select.input, textarea.input { font: inherit; font-size: 15px; }
select.input {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 46px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 18px center;
}
textarea.input { resize: vertical; min-height: 92px; line-height: 1.55; }
.input-note { margin-top: 10px; }
.form label .opt { font-weight: 400; color: var(--ink3); }
.input:focus { border-color: var(--accentD); box-shadow: 0 0 0 4px var(--mintS); }
.check { display: flex; gap: 10px; align-items: flex-start; }
.check input { margin: 4px 0 0; width: 18px; height: 18px; accent-color: var(--accentD); flex-shrink: 0; }
.form .check span { font-size: 15px; line-height: 1.6; color: var(--ink2); font-weight: 400; }
.btn {
  border: none; cursor: pointer; padding: 15px 26px; border-radius: 14px; background: var(--accentD); color: #fff;
  font-size: 15px; font-weight: 700; box-shadow: 0 10px 26px var(--accentGlow);
}
.btn-danger { background: var(--danger); box-shadow: 0 10px 26px var(--dangerGlow); }
.btn:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
.btn-link {
  border: none; background: none; cursor: pointer; padding: 0; font-size: inherit; font-weight: 700; color: var(--accentD);
}
.btn-link:disabled { color: var(--ink3); cursor: not-allowed; }
.content .hint { font-size: 13.5px; line-height: 1.6; color: var(--ink3); margin: 8px 0 0; }
.hint-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; font-size: 13.5px; }
.content .msg { border-radius: 14px; padding: 13px 16px; margin: 0 0 18px; font-size: 14.5px; line-height: 1.55; font-weight: 600; }
.msg.err { background: var(--peachS); color: var(--errInk); }
.msg.ok { background: var(--mintS); color: var(--okInk); }

/* ---------- Footer (identik dengan landing) ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg2); }
.footer-inner { max-width: 1180px; margin: 0 auto; padding: 40px 28px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer .brand { gap: 10px; }
.footer .mark { width: 30px; height: 30px; border-radius: 10px; }
.footer .mark i { width: 11px; height: 11px; box-shadow: 0 0 8px 2px rgba(252,231,184,.8); }
.footer .brand b { font-size: 19px; letter-spacing: 0; }
.fmeta { font-size: 13px; color: var(--ink3); }
.flinks { width: 100%; display: flex; gap: 8px 18px; flex-wrap: wrap; }
.flinks a { font-size: 13px; color: var(--ink2); }
.flinks a:hover { color: var(--ink); }

/* ---------- Layar kecil (breakpoint sama dengan landing) ---------- */
@media (max-width: 860px) {
  .navlink { display: none; }
  .nav-inner { padding-left: 18px; padding-right: 18px; }
}
@media (max-width: 560px) {
  .cta { padding-left: 15px; padding-right: 15px; }
  .nav-inner { gap: 10px; }
  .navdl { padding: 8px 11px; }
  .hero-inner { padding: 48px 18px 30px; }
  .tabs a { padding: 8px 12px; font-size: 13.5px; }
  .content { padding: 4px 18px 72px; }
  .content h2 { margin-top: 44px; }
  .card, .form { padding: 20px 18px; }
  .table thead { display: none; }
  .table table, .table tbody, .table tr, .table td { display: block; width: auto; }
  .table tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .table tr:last-child { border-bottom: 0; }
  .table td { padding: 0; border: 0; }
  .table td:first-child { width: auto; margin-bottom: 4px; }
  .btn { width: 100%; }
  .footer-inner { padding: 32px 18px; }
}
/* HP sempit: nav cukup logo + Unduh + tema ("Gabung" ada di landing). */
@media (max-width: 420px) {
  .cta { display: none; }
}
