/* =========================================================
   PhotoLink — Halaman legal (/privasi, /ketentuan)
   ========================================================= */
.lg-top { max-width: 1080px; margin: 0 auto; padding: 22px 22px 0; padding-top: max(22px, env(safe-area-inset-top)); }
.lg { max-width: 1080px; margin: 0 auto; padding: 0 22px calc(56px + var(--safe-b)); }
.lg-head { padding: 40px 0 28px; border-bottom: 1px solid var(--divider); }
.lg-head h1 { margin: 10px 0 12px; font-size: clamp(34px, 5vw, 50px); line-height: 1.05; letter-spacing: -.04em; font-weight: 800; }
.lg-head h1 em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--blue2); letter-spacing: -.02em; }
.lg-lead { margin: 0; max-width: 62ch; color: var(--muted); font-size: 16.5px; line-height: 1.6; }
.lg-meta { margin: 14px 0 0; font-size: 13px; color: var(--dim); }
.lg-switch { display: inline-flex; gap: 4px; margin-top: 20px; padding: 4px; border-radius: 12px; background: var(--panel2); border: 1px solid var(--line); }
.lg-switch a { padding: 8px 14px; border-radius: 9px; font-size: 13.5px; font-weight: 600; color: var(--muted); transition: background .2s, color .2s; }
.lg-switch a:hover { color: var(--text); }
.lg-switch a.on { background: var(--panel); color: var(--text); box-shadow: 0 1px 3px var(--shadow); }

.lg-body { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 48px; padding-top: 32px; align-items: start; }
.lg-toc { position: sticky; top: 24px; display: grid; gap: 10px; font-size: 13.5px; }
.lg-toc strong { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.lg-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: t; }
.lg-toc a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--muted); line-height: 1.35; transition: background .2s, color .2s; }
.lg-toc a:hover { background: var(--hover); color: var(--text); }

.lg-doc { max-width: 720px; font-size: 15.5px; line-height: 1.75; color: var(--text); }
.lg-doc section { scroll-margin-top: 20px; padding-bottom: 8px; }
.lg-doc section + section { margin-top: 28px; }
.lg-doc h2 { margin: 0 0 12px; font-size: 22px; line-height: 1.25; letter-spacing: -.025em; font-weight: 750; }
.lg-doc h3 { margin: 20px 0 6px; font-size: 16px; letter-spacing: -.01em; font-weight: 700; }
.lg-doc p { margin: 0 0 12px; color: var(--muted); }
.lg-doc p b, .lg-doc li b { color: var(--text); font-weight: 650; }
.lg-doc ul { margin: 0 0 12px; padding-left: 20px; color: var(--muted); }
.lg-doc li { margin: 6px 0; padding-left: 2px; }
.lg-doc li::marker { color: var(--blue2); }
.lg-doc a { color: var(--blue2); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.lg-doc code { font: 500 13px/1 var(--mono); padding: 2px 6px; border-radius: 6px; background: var(--panel2); border: 1px solid var(--line); color: var(--text); white-space: nowrap; }

.lg-sum { padding: 18px 20px 8px; border-radius: 16px; background: var(--blue-soft); border: 1px solid rgba(47, 107, 234, .25); }
.lg-sum h2 { font-size: 17px; margin-bottom: 6px; }
.lg-sum ul { padding-left: 18px; }
.lg-sum li { color: var(--text); }
.lg-note { margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--blue); }
.lg-note p { margin: 0; font-size: 14px; line-height: 1.6; }

.lg-table { margin: 6px 0 14px; overflow-x: auto; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); -webkit-overflow-scrolling: touch; }
.lg-table table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.lg-table th { text-align: left; font-size: 12px; letter-spacing: .03em; text-transform: uppercase; color: var(--dim); font-weight: 650; padding: 12px 14px; background: var(--panel2); border-bottom: 1px solid var(--line); }
.lg-table td { padding: 12px 14px; vertical-align: top; color: var(--muted); border-top: 1px solid var(--line); }
.lg-table tr:first-child td { border-top: 0; }
.lg-table td:first-child { color: var(--text); font-weight: 600; }

.lg-foot { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--divider); font-size: 13.5px; color: var(--dim); }
.lg-foot a { color: var(--muted); font-weight: 600; }
.lg-foot a:hover { color: var(--text); }
.lg-foot span { margin-left: auto; }

@media (max-width: 860px) {
  .lg-body { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .lg-toc { position: static; padding: 14px 16px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
  .lg-toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg-toc a { padding: 5px 8px; }
}
@media (max-width: 520px) {
  .lg-top, .lg { padding-left: 16px; padding-right: 16px; }
  .lg-head { padding-top: 28px; }
  .lg-toc ol { grid-template-columns: minmax(0, 1fr); }
  .lg-doc { font-size: 15px; }
  .lg-foot span { margin-left: 0; width: 100%; }
}
@media print {
  .lg-toc, .lg-switch, .theme-btn, .lg-foot { display: none; }
  .lg-body { display: block; }
}
