/* ==========================================================================
   NusaTube — assets/css/pages.css
   Halaman informasi/legal (terms, privacy, dmca, report, contact).
   Muat SETELAH nusatube.css (memakai token-nya).
   ========================================================================== */
.nt-legal { padding-top: 28px; padding-bottom: 72px; }

.nt-legal__hero {
  position: relative; overflow: hidden; margin-bottom: 28px;
  padding: clamp(28px, 5vw, 48px) clamp(22px, 4vw, 44px); border-radius: 24px;
  background: linear-gradient(145deg, var(--hero-from), var(--hero-to)); color: var(--hero-text);
}
.nt-legal__hero::after {
  content: ""; position: absolute; right: -80px; top: -110px; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .15), transparent 70%); pointer-events: none;
}
.nt-legal__hero > * { position: relative; z-index: 1; }
.nt-legal__hero .nt-hero__eyebrow { margin-bottom: 12px; }
.nt-legal__hero h1 { font-family: 'Sora', 'Inter', sans-serif; font-size: clamp(26px, 4vw, 40px); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.nt-legal__hero p { max-width: 640px; margin-top: 12px; font-size: 15px; line-height: 1.7; opacity: .9; }
.nt-legal__meta { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 6px 14px; border-radius: 999px; font-size: 12.5px; background: rgba(255, 255, 255, .12); }
.nt-legal__meta .nt-icon { width: 15px; height: 15px; }

.nt-legal__layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 36px; align-items: start; }

/* Daftar isi */
.nt-legal__toc { position: sticky; top: 148px; max-height: calc(100vh - 170px); overflow-y: auto; padding: 18px 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.nt-legal__toc h2 { margin-bottom: 10px; padding: 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.nt-legal__toc a { display: block; padding: 7px 10px; border-radius: 10px; font-size: 13.5px; line-height: 1.4; color: var(--muted); transition: background .15s, color .15s; }
.nt-legal__toc a:hover { color: var(--text); background: var(--surface-2); }
.nt-legal__toc a.is-active { color: var(--brand-ink); background: var(--tint); font-weight: 600; }
.nt-legal__tocm { display: none; margin-bottom: 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.nt-legal__tocm summary { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; cursor: pointer; font-size: 14px; font-weight: 600; list-style: none; }
.nt-legal__tocm summary::-webkit-details-marker { display: none; }
.nt-legal__tocm[open] summary .nt-icon { transform: rotate(180deg); }
.nt-legal__tocm nav { padding: 0 10px 12px; }
.nt-legal__tocm a { display: block; padding: 9px 10px; border-radius: 10px; font-size: 14px; color: var(--muted); }
.nt-legal__tocm a:hover { background: var(--surface-2); color: var(--text); }

/* Isi */
.nt-legal__body { min-width: 0; max-width: 780px; counter-reset: sec; }
.nt-legal__intro {
  display: flex; gap: 14px; margin-bottom: 30px; padding: 18px 20px; border-radius: 16px;
  background: var(--tint); font-size: 14.5px; line-height: 1.7;
}
.nt-legal__intro .nt-icon { flex-shrink: 0; width: 22px; height: 22px; margin-top: 2px; color: var(--brand-ink); }
.nt-legal__sec { padding: 28px 0; border-top: 1px solid var(--line); scroll-margin-top: 150px; }
.nt-legal__sec:first-of-type { border-top: 0; padding-top: 0; }
.nt-legal__sec h2 {
  counter-increment: sec; display: flex; align-items: baseline; gap: 12px;
  margin-bottom: 14px; font-family: 'Sora', 'Inter', sans-serif; font-size: 20px; font-weight: 700; letter-spacing: -.01em;
}
.nt-legal__sec h2::before { content: counter(sec); display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 30px; padding: 0 8px; border-radius: 10px; font-size: 14px; background: var(--tint); color: var(--brand-ink); flex-shrink: 0; transform: translateY(-1px); }
.nt-legal__sec p { margin-top: 12px; font-size: 15px; line-height: 1.85; color: var(--muted); }
.nt-legal__sec p:first-of-type { margin-top: 0; }
.nt-legal__sec strong { color: var(--text); font-weight: 600; }
.nt-legal__sec a { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 3px; }
.nt-legal__sec ul, .nt-legal__sec ol { margin: 12px 0 0 4px; padding: 0; list-style: none; display: grid; gap: 9px; font-size: 15px; line-height: 1.75; color: var(--muted); }
.nt-legal__sec ul li, .nt-legal__sec ol li { position: relative; padding-left: 22px; }
.nt-legal__sec ul li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.nt-legal__sec ol { counter-reset: item; }
.nt-legal__sec ol li { counter-increment: item; }
.nt-legal__sec ol li::before { content: counter(item) "."; position: absolute; left: 0; font-weight: 600; color: var(--brand-ink); }
.nt-legal__note { margin-top: 16px; padding: 14px 16px; border-radius: 12px; border-left: 3px solid var(--brand); background: var(--surface-2); font-size: 14px; line-height: 1.7; color: var(--muted); }
.nt-legal__note strong { color: var(--text); }

.nt-legal__foot { margin-top: 12px; padding: 22px 24px; border-radius: 18px; background: var(--surface-2); border: 1px dashed var(--line); }
.nt-legal__foot h3 { font-size: 16px; }
.nt-legal__foot p { margin-top: 6px; font-size: 14.5px; line-height: 1.7; color: var(--muted); }
.nt-legal__foot .nt-btn { margin-top: 14px; }
.nt-legal__links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; font-size: 13.5px; }
.nt-legal__links a { color: var(--muted); }
.nt-legal__links a:hover { color: var(--brand-ink); }

@media (max-width: 960px) {
  .nt-legal__layout { grid-template-columns: 1fr; gap: 0; }
  .nt-legal__toc { display: none; }
  .nt-legal__tocm { display: block; }
  .nt-legal__sec { scroll-margin-top: 130px; }
}
@media (max-width: 560px) {
  .nt-legal__sec h2 { font-size: 18px; }
  .nt-legal__sec p, .nt-legal__sec ul, .nt-legal__sec ol { font-size: 14.5px; }
}

/* ==========================================================================
   Halaman Laporkan Konten (report.php) — form & kartu samping
   ========================================================================== */
.nt-report__layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.nt-report__main { min-width: 0; }

/* Form */
.nt-form { display: grid; gap: 22px; padding: clamp(20px, 3vw, 32px); border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.nt-field { display: grid; gap: 8px; min-width: 0; }
.nt-field label { font-size: 14px; font-weight: 600; color: var(--text); }
.nt-req { color: var(--danger, #e5484d); }
.nt-field input[type="text"], .nt-field input[type="email"], .nt-field select, .nt-field textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; font: inherit; font-size: 14.5px; line-height: 1.5;
  color: var(--text); background: var(--surface-2); border: 1px solid var(--line);
  transition: border-color .15s, box-shadow .15s;
}
.nt-field textarea { resize: vertical; min-height: 140px; }
.nt-field input:focus, .nt-field select:focus, .nt-field textarea:focus {
  outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent);
}
.nt-field__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.nt-field__hint { font-size: 13px; line-height: 1.6; color: var(--muted); }
.nt-field__hint code { padding: 1px 6px; border-radius: 6px; background: var(--surface-2); font-size: 12.5px; }
.nt-field__hint a { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 3px; }
.nt-field__hint--solo { margin-top: -8px; }
#rpHint { padding: 10px 14px; border-radius: 10px; border-left: 3px solid var(--brand); background: var(--tint); color: var(--text); }
.nt-check { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; line-height: 1.65; color: var(--muted); cursor: pointer; }
.nt-check input { flex-shrink: 0; width: 18px; height: 18px; margin-top: 3px; accent-color: var(--brand); }
.nt-form .nt-btn { justify-self: start; }
.nt-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Peringatan & sukses */
.nt-alert { display: flex; gap: 14px; margin-bottom: 18px; padding: 16px 18px; border-radius: 14px; font-size: 14px; line-height: 1.65; }
.nt-alert .nt-icon { flex-shrink: 0; width: 20px; height: 20px; margin-top: 2px; }
.nt-alert ul { margin: 6px 0 0 18px; list-style: disc; }
.nt-alert--err { background: color-mix(in srgb, var(--danger, #e5484d) 12%, transparent); border: 1px solid color-mix(in srgb, var(--danger, #e5484d) 40%, transparent); color: var(--text); }
.nt-alert--err .nt-icon { color: var(--danger, #e5484d); }
.nt-report__done { padding: clamp(28px, 5vw, 48px) clamp(22px, 4vw, 40px); text-align: center; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.nt-report__done > .nt-icon { width: 48px; height: 48px; color: var(--brand-ink); }
.nt-report__done h2 { margin-top: 14px; font-family: 'Sora', 'Inter', sans-serif; font-size: 22px; font-weight: 700; }
.nt-report__done p { max-width: 520px; margin: 10px auto 0; font-size: 15px; line-height: 1.75; color: var(--muted); }
.nt-report__done strong { color: var(--text); }
.nt-report__done-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }

/* Kartu samping */
.nt-report__side { display: grid; gap: 16px; position: sticky; top: 148px; }
.nt-report__card { padding: 18px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.nt-report__card h2 { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; }
.nt-report__card h2 .nt-icon { width: 18px; height: 18px; color: var(--brand-ink); }
.nt-report__card p, .nt-report__card li { margin-top: 8px; font-size: 13.5px; line-height: 1.7; color: var(--muted); }
.nt-report__card ul { margin: 4px 0 0 18px; list-style: disc; }
.nt-report__card a { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 3px; }
.nt-report__card--urgent { background: var(--tint); border-color: transparent; }

@media (max-width: 960px) {
  .nt-report__layout { grid-template-columns: 1fr; }
  .nt-report__side { position: static; }
}
@media (max-width: 560px) {
  .nt-field__row { grid-template-columns: 1fr; }
  .nt-form .nt-btn { justify-self: stretch; justify-content: center; }
}