/* ============================================================
   HYPOTENUSE EDU — LEGAL PAGES STYLES
   Untuk: syarat-ketentuan.html, kebijakan-privasi.html, faq.html
   Urutan pemuatan WAJIB:
   tokens.css -> components.css -> landing.css -> legal.css
   (landing.css dipakai ulang untuk nav, logo, dan footer)
   ============================================================ */

/* ── HERO ── */
.legal-hero {
  background: var(--he-cream);
  padding: 64px 0 56px;
  text-align: center;
}

.legal-hero h1 {
  font-size: 40px;
  font-weight: 800;
  margin: 0 0 14px;
}

.legal-hero .he-badge { font-size: 12px; }

/* ── LAYOUT ── */
.legal-body { padding: 64px 0 96px; }

.legal-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  align-items: start;
}

/* ── DAFTAR ISI ── */
.toc {
  position: sticky;
  top: 96px;
  border-left: 2px solid var(--he-border);
}

.toc-title {
  font-family: var(--he-font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--he-muted);
  padding-left: 16px;
  margin-bottom: 12px;
}

.toc ul { list-style: none; margin: 0; padding: 0; }

.toc a {
  display: block;
  font-size: 13px;
  color: var(--he-muted);
  text-decoration: none;
  padding: 6px 0 6px 16px;
  margin-left: -2px;
  border-left: 2px solid transparent;
  transition: color var(--he-ease), border-color var(--he-ease);
}

.toc a:hover { color: var(--he-forest); border-left-color: var(--he-forest); }

/* ── KONTEN ── */
.legal-content {
  background: var(--he-white);
  border: 1px solid var(--he-border);
  border-radius: var(--he-r-lg);
  padding: 48px 52px;
  max-width: 760px;
}

.legal-section { margin-bottom: 40px; scroll-margin-top: 96px; }
.legal-section:last-of-type { margin-bottom: 0; }

.legal-section h2 {
  font-size: 21px;
  font-weight: 700;
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--he-border);
}

.legal-section h3 {
  font-size: 15.5px;
  font-weight: 700;
  margin: 22px 0 8px;
}

.legal-section p {
  font-size: 14px;
  color: var(--he-muted);
  line-height: 1.75;
  margin: 0 0 12px;
}

.legal-section p strong { color: var(--he-ink); }

.legal-section ul {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-section li {
  font-size: 14px;
  color: var(--he-muted);
  line-height: 1.65;
  padding-left: 20px;
  position: relative;
}

.legal-section li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 2px;
  border-radius: 2px;
  background: var(--he-forest);
}

.legal-section li strong { color: var(--he-ink); }

.legal-section a {
  color: var(--he-forest);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid var(--he-lime);
  transition: border-color var(--he-ease);
}

.legal-section a:hover { border-bottom-color: var(--he-forest); }

/* catatan penutup */
.legal-note {
  margin-top: 40px;
  background: var(--he-lime-soft);
  border: 1px solid var(--he-lime);
  border-radius: var(--he-r);
  padding: 18px 22px;
  font-size: 13.5px;
  color: var(--he-ink);
  line-height: 1.65;
}

.legal-note strong { font-family: var(--he-font-heading); }

/* ── FAQ (accordion sederhana) ── */
.faq-item {
  border: 1px solid var(--he-border);
  border-radius: var(--he-r);
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--he-white);
}

.faq-item summary {
  font-family: var(--he-font-heading);
  font-size: 15px;
  font-weight: 700;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

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

.faq-item summary::after {
  content: '+';
  font-size: 20px;
  color: var(--he-muted);
  transition: transform var(--he-ease);
}

.faq-item[open] summary::after { content: '−'; color: var(--he-forest); }

.faq-item .faq-answer {
  padding: 0 22px 18px;
  font-size: 14px;
  color: var(--he-muted);
  line-height: 1.7;
}

/* ── FAQ: FILTER KATEGORI ── */
.faq-cats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 32px;
}

.faq-cat {
  font-family: var(--he-font-heading);
  font-size: 13px;
  font-weight: 600;
  color: var(--he-muted);
  background: var(--he-white);
  border: 1.5px solid var(--he-border-2);
  border-radius: var(--he-r-pill);
  padding: 8px 18px;
  cursor: pointer;
  transition: background var(--he-ease), border-color var(--he-ease), color var(--he-ease);
}

.faq-cat:hover { border-color: var(--he-forest); color: var(--he-forest); }

.faq-cat.is-active {
  background: var(--he-forest);
  border-color: var(--he-forest);
  color: #fff;
}

.faq-wrap { max-width: 720px; margin: 0 auto; }

/* kotak "masih punya pertanyaan" */
.faq-contact-box {
  margin-top: 48px;
  background: var(--he-forest);
  border-radius: var(--he-r-lg);
  padding: 40px 32px;
  text-align: center;
}

.faq-contact-box h3 {
  font-size: 22px;
  color: #fff;
  margin: 0 0 8px;
}

.faq-contact-box p {
  font-size: 14px;
  color: var(--he-muted-2);
  max-width: 400px;
  margin: 0 auto 22px;
}

/* ── KONTAK ── */
.contact-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 24px;
  align-items: start;
}

.contact-card {
  background: var(--he-white);
  border: 1px solid var(--he-border);
  border-radius: var(--he-r-lg);
  padding: 32px;
}

.contact-card h2 {
  font-size: 21px;
  margin: 0 0 6px;
}

.contact-card > p { font-size: 13.5px; color: var(--he-muted); margin: 0 0 24px; }

.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-top: 1px solid var(--he-border);
}

.contact-item-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--he-muted);
  margin-bottom: 2px;
}

.contact-item-value, .contact-item-value a {
  font-family: var(--he-font-heading);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--he-ink);
  text-decoration: none;
}

.contact-item-value a:hover { color: var(--he-forest); }

.contact-subtitle {
  font-family: var(--he-font-heading);
  font-size: 13px;
  font-weight: 700;
  margin: 26px 0 12px;
}

.contact-social { display: flex; gap: 10px; }

.contact-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--he-border-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--he-muted);
  transition: border-color var(--he-ease), color var(--he-ease), background var(--he-ease);
}

.contact-social a:hover { border-color: var(--he-forest); color: var(--he-forest); background: var(--he-lime-soft); }

.contact-social svg { width: 16px; height: 16px; fill: currentColor; }

.contact-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }

.contact-links a {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--he-forest);
  text-decoration: none;
  border-bottom: 1.5px solid var(--he-lime);
  align-self: flex-start;
}

.contact-links a:hover { border-bottom-color: var(--he-forest); }

.contact-form-note { font-size: 12.5px; color: var(--he-muted); margin-top: 14px; }
.contact-form-note a { color: var(--he-forest); font-weight: 600; text-decoration: none; }

/* trio info respon */
.response-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.response-item {
  background: var(--he-cream);
  border-radius: var(--he-r);
  padding: 22px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.response-item h4 {
  font-family: var(--he-font-heading);
  font-size: 14.5px;
  font-weight: 700;
  margin: 0 0 3px;
}

.response-item p { font-size: 12.5px; color: var(--he-muted); margin: 0; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .legal-grid { grid-template-columns: 1fr; gap: 32px; }
  .toc { position: static; border-left: none; border-bottom: 1px solid var(--he-border); padding-bottom: 20px; }
  .toc a { padding-left: 0; border-left: none; display: inline-block; margin-right: 16px; }
  .toc-title { padding-left: 0; }
  .legal-content { padding: 28px 24px; }
  .legal-hero h1 { font-size: 30px; }
  .contact-grid { grid-template-columns: 1fr; }
  .response-grid { grid-template-columns: 1fr; }
}