/* =========================================================
   OPTV HD — legal pages   v1.0
   File: templates/lagom2/optv/optv-legal.css
   Works together with optv-pages.css (loaded by pg-head.tpl)
   ========================================================= */

/* header */
.lg-hero {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 30px; padding: 40px 44px;
  background:
    radial-gradient(circle at 92% 0%, rgba(125,211,252,.55), transparent 42%),
    linear-gradient(160deg, #E8F6FF 0%, #D3EEFE 100%);
  display: flex; flex-direction: column; gap: 14px;
}
.lg-hero::after { content: ""; position: absolute; right: -120px; bottom: -170px; width: 380px; height: 380px; border-radius: 50%; border: 1px solid rgba(3,105,161,.12); z-index: -1; }
body .pg .lg-hero__title { font-size: clamp(32px, 4.4vw, 50px); letter-spacing: -.03em; color: var(--pg-ink); }
body .pg .lg-hero__intro { font-size: 17px; line-height: 1.65; color: var(--pg-muted); max-width: 760px; }
.lg-hero__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13.5px; font-weight: 600; color: #0B3A57; }
.lg-hero__meta span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.75); }
.lg-hero__meta svg { color: var(--pg-accent); }

/* layout */
.lg-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 40px; align-items: start; padding-top: 36px; }

/* table of contents */
.lg-toc { position: sticky; top: 24px; }
.lg-toc__box { border-radius: 22px; background: #fff; border: 1px solid var(--pg-line); padding: 18px; }
.lg-toc__box summary { font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--pg-accent); cursor: pointer; list-style: none; }
.lg-toc__box summary::-webkit-details-marker { display: none; }
body .pg .lg-toc ol { margin-top: 12px; display: flex; flex-direction: column; gap: 2px; counter-reset: lg; }
.lg-toc li { counter-increment: lg; }
body .pg .lg-toc a { display: flex; gap: 10px; padding: 8px 10px; border-radius: 12px; font-size: 14px; font-weight: 600; color: var(--pg-text); line-height: 1.35; }
.lg-toc a::before { content: counter(lg); flex: 0 0 auto; min-width: 18px; color: var(--pg-muted); font-weight: 800; font-size: 12.5px; padding-top: 1px; }
body .pg .lg-toc a:hover, body .pg .lg-toc a.is-active { background: var(--pg-sky); color: var(--pg-ink); }

/* body */
.lg-body { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.lg-sec { scroll-margin-top: 90px; padding: 26px 28px; border-radius: 24px; background: #fff; border: 1px solid var(--pg-line); }
body .pg .lg-sec h2 { display: flex; align-items: center; gap: 12px; font-size: clamp(19px, 2.2vw, 23px); letter-spacing: -.015em; color: var(--pg-ink); margin-bottom: 12px; }
.lg-num { flex: 0 0 34px; height: 34px; border-radius: 11px; background: var(--pg-sky); color: var(--pg-accent); font-size: 14px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.lg-text { font-size: 16px; line-height: 1.75; color: var(--pg-text); }
body .pg .lg-text p { margin: 0 0 12px; }
body .pg .lg-text p:last-child { margin-bottom: 0; }
body .pg .lg-text ul, body .pg .lg-text ol { margin: 0 0 12px; display: flex; flex-direction: column; gap: 8px; }
body .pg .lg-text ul:last-child, body .pg .lg-text ol:last-child { margin-bottom: 0; }
.lg-text ul li { position: relative; padding-left: 22px; }
.lg-text ul li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--pg-accent); }
.lg-text ol { counter-reset: lgo; }
.lg-text ol li { position: relative; padding-left: 34px; counter-increment: lgo; }
.lg-text ol li::before { content: counter(lgo); position: absolute; left: 0; top: .1em; width: 24px; height: 24px; border-radius: 8px; background: var(--pg-sky); color: var(--pg-accent); font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.lg-text b { color: var(--pg-ink); }
body .pg .lg-text a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--pg-sky-2); }

/* help box */
.lg-help { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; padding: 26px 28px; border-radius: 26px; color: #fff;
  background: radial-gradient(circle at 95% 0%, rgba(125,211,252,.4), transparent 45%), linear-gradient(125deg, #0B2239 0%, #075985 60%, #0284C7 100%); }
.lg-help > div { flex: 1 1 320px; display: flex; flex-direction: column; gap: 4px; }
body .pg .lg-help h2 { font-size: 20px; color: #fff; }
body .pg .lg-help p { color: #D6EEFC; font-size: 15px; }
body .pg .lg-help a:not(.pg-btn) { color: #fff; font-weight: 700; text-decoration: underline; }
.lg-help .pg-ico { margin: 0; }

.lg-others { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; font-size: 14px; font-weight: 700; color: var(--pg-muted); }
body .pg .lg-others a { padding: 7px 14px; border-radius: 999px; background: var(--pg-sky); color: var(--pg-accent-dark); }
body .pg .lg-others a:hover { background: var(--pg-sky-2); color: var(--pg-ink); }

/* responsive */
@media (max-width: 991px) {
  .lg-layout { grid-template-columns: 1fr; gap: 16px; padding-top: 20px; }
  .lg-toc { position: static; }
  .lg-toc__box:not([open]) { padding: 14px 18px; }
}
@media (max-width: 700px) {
  .lg-hero { padding: 26px 18px; border-radius: 24px; }
  body .pg .lg-hero__intro { font-size: 15.5px; }
  .lg-sec { padding: 20px 18px; border-radius: 20px; }
  .lg-text { font-size: 15.5px; }
  .lg-help { padding: 22px 18px; border-radius: 22px; }
  .lg-help .pg-btn { width: 100%; }
}
