/* ==========================================================
   LEGAL PAGES STYLES – privacy-policy.php + terms-and-conditions.php
   ========================================================== */

/* ---------- Hero ---------- */
.lg-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 140px 0 90px;
  text-align: center;
  color: #c9d4ee;
  background: var(--navy-900);
}
.lg-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(620px 360px at 15% 0%, rgba(30, 107, 255, 0.35), transparent 65%),
    radial-gradient(560px 360px at 85% 100%, rgba(46, 230, 242, 0.14), transparent 65%);
}
.lg-hero__bg::before {
  /* faint ruled-paper lines */
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 100% 34px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%);
}
.lg-hero__inner {
  max-width: 820px;
}
.lg-hero .crumbs {
  margin: 0 auto 20px;
}
.lg-hero__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-size: 26px;
  color: var(--navy-900);
  background: var(--cyan);
  box-shadow:
    0 0 0 10px rgba(46, 230, 242, 0.1),
    0 18px 36px rgba(0, 0, 0, 0.35);
}
.lg-hero h1 {
  color: #fff;
  font-size: clamp(34px, 4.4vw, 54px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.lg-hero p {
  max-width: 680px;
  margin: 16px auto 0;
  font-size: 16.5px;
  line-height: 1.7;
}
.lg-hero__meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.lg-hero__meta li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.lg-hero__meta i {
  color: var(--cyan);
}
.lg-hero__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.lg-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--navy-900);
  background: #fff;
  cursor: pointer;
  transition:
    transform 0.3s,
    box-shadow 0.3s,
    background 0.3s,
    color 0.3s;
}
.lg-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.3);
}
.lg-btn--ghost {
  color: #fff;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}
.lg-btn--ghost:hover {
  color: var(--navy-900);
  background: #fff;
}

/* ---------- At a glance (privacy) ---------- */
.lg-glance {
  position: relative;
  z-index: 2;
  margin-top: -46px;
  padding: 22px 24px 16px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.lg-glance__label {
  display: block;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-600);
}
.lg-glance__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.lg-glance__grid > div {
  display: flex;
  gap: 12px;
}
.lg-glance__grid span {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: var(--blue-600);
  background: var(--blue-50);
}
.lg-glance__grid p {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
}
.lg-glance__grid strong {
  display: block;
  font-family: var(--font-head);
  font-size: 14.5px;
  color: var(--ink);
}
.lg-glance__note {
  display: block;
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
}

/* ---------- Layout ---------- */
.lg-body {
  padding: 70px 0 90px;
  background: linear-gradient(180deg, #fff, var(--bg-soft) 40%, #fff);
}
.lg-body--glance {
  padding-top: 56px;
}
.lg-layout {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 40px;
  align-items: start;
}

/* ---------- Table of contents ---------- */
.lg-toc {
  position: sticky;
  top: calc(var(--header-h, 80px) + 24px);
  display: grid;
  gap: 16px;
  max-height: calc(100vh - var(--header-h, 80px) - 48px);
}
.lg-toc__box {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.lg-toc__box summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px 12px;
  list-style: none;
  cursor: default;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
}
.lg-toc__box summary::-webkit-details-marker {
  display: none;
}
.lg-toc__box summary i {
  color: var(--blue-600);
}
.lg-toc__pct {
  margin-left: auto;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue-600);
}
.lg-toc__bar {
  display: block;
  height: 3px;
  margin: 0 18px 8px;
  overflow: hidden;
  border-radius: 3px;
  background: #e3e9f5;
}
.lg-toc__bar b {
  display: block;
  width: 0;
  height: 100%;
  background: var(--grad-primary);
}
.lg-toc__list {
  overflow-y: auto;
  max-height: 58vh;
  padding: 4px 10px 12px;
  scrollbar-width: thin;
}
.lg-toc__list a {
  position: relative;
  display: flex;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
  transition:
    background 0.25s,
    color 0.25s;
}
.lg-toc__list a span {
  flex: none;
  min-width: 20px;
  font-family: var(--font-head);
  font-size: 11.5px;
  font-weight: 800;
  color: #a3b0cb;
  transition: color 0.25s;
}
.lg-toc__list a:hover {
  color: var(--blue-600);
  background: var(--bg-soft);
}
.lg-toc__list a.is-active {
  color: var(--blue-600);
  background: var(--blue-50);
}
.lg-toc__list a.is-active span {
  color: var(--blue-600);
}
.lg-toc__list a.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 3px;
  background: var(--blue-600);
}
.lg-toc__sub {
  margin: 2px 0 6px 30px;
  padding-left: 10px;
  border-left: 1px solid var(--line);
}
.lg-toc__sub a {
  padding: 5px 10px;
  font-size: 12.5px;
  font-weight: 500;
}
.lg-toc__sub a.is-active::before {
  display: none;
}
.lg-help {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 20px;
  color: #a9b6d6;
  background:
    radial-gradient(200px 140px at 100% 0%, rgba(46, 230, 242, 0.2), transparent 70%),
    linear-gradient(150deg, #0f2766, var(--navy-900));
}
.lg-help > span {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--navy-900);
  background: var(--cyan);
}
.lg-help p {
  font-size: 13px;
  line-height: 1.5;
}
.lg-help strong {
  display: block;
  font-family: var(--font-head);
  font-size: 15px;
  color: #fff;
}
.lg-help a {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--cyan);
  word-break: break-all;
}

/* ---------- Document ---------- */
.lg-doc {
  display: grid;
  gap: 18px;
  min-width: 0;
}
.lg-lead {
  padding: 20px 24px;
  border-radius: 20px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--blue-50);
  border: 1px solid #d6e2ff;
}
.lg-sec {
  scroll-margin-top: calc(var(--header-h, 80px) + 24px);
  padding: 32px 34px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition:
    border-color 0.4s,
    box-shadow 0.4s;
}
.lg-sec.is-current {
  border-color: #c9d9ff;
  box-shadow: 0 18px 40px rgba(13, 38, 96, 0.08);
}
.lg-sec h2 {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  font-size: clamp(21px, 2.2vw, 26px);
  font-weight: 800;
  line-height: 1.25;
  color: var(--ink);
}
.lg-sec__no {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  background: var(--grad-primary);
}
.lg-anchor {
  margin-left: auto;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 12px;
  color: var(--muted);
  background: var(--bg-soft);
  opacity: 0;
  cursor: pointer;
  transition:
    opacity 0.25s,
    background 0.25s,
    color 0.25s;
}
.lg-sec:hover .lg-anchor,
.lg-anchor:focus-visible {
  opacity: 1;
}
.lg-anchor:hover {
  color: #fff;
  background: var(--blue-600);
}
.lg-anchor.is-copied {
  opacity: 1;
  color: #fff;
  background: var(--green);
}
.lg-sec h3 {
  scroll-margin-top: calc(var(--header-h, 80px) + 24px);
  margin: 24px 0 10px;
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
}
.lg-sec h3:first-of-type {
  margin-top: 6px;
}
.lg-sec h4 {
  margin: 20px 0 8px;
  font-size: 15.5px;
  font-weight: 800;
  color: var(--blue-600);
}
.lg-sec p {
  margin-bottom: 12px;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--text);
}
.lg-sec p:last-child {
  margin-bottom: 0;
}
.lg-sec a:not(.lg-contact a) {
  font-weight: 600;
  color: var(--blue-600);
  text-decoration: underline;
  text-decoration-color: rgba(21, 84, 232, 0.3);
  text-underline-offset: 3px;
}
.lg-sec a:not(.lg-contact a):hover {
  text-decoration-color: currentColor;
}
.lg-note {
  display: flex;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 16px;
  font-weight: 600;
  color: var(--ink) !important;
  background: #fff8e6;
  border: 1px solid #fde4a5;
}
.lg-note i {
  margin-top: 5px;
  color: #d97706;
}
/* definitions */
.lg-defs {
  display: grid;
  gap: 8px;
  margin-top: 6px;
}
.lg-defs > div {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 16px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--bg-soft);
  border: 1px solid transparent;
  transition:
    border-color 0.25s,
    background 0.25s;
}
.lg-defs > div:hover {
  background: #fff;
  border-color: #c9d9ff;
}
.lg-defs dt {
  font-family: var(--font-head);
  font-size: 14.5px;
  font-weight: 800;
  color: var(--ink);
}
.lg-defs dd {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text);
}
/* lists */
.lg-list {
  display: grid;
  gap: 10px;
  margin: 6px 0 14px;
}
.lg-list li {
  position: relative;
  padding-left: 28px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
}
.lg-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 10px;
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: var(--grad-primary);
  transform: rotate(45deg);
}
.lg-list li strong {
  color: var(--ink);
}
.lg-list--compact {
  gap: 6px;
}
.lg-roman {
  display: grid;
  gap: 8px;
  margin: 6px 0 14px;
  counter-reset: roman;
}
.lg-roman li {
  position: relative;
  padding: 10px 14px 10px 50px;
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg-soft);
  counter-increment: roman;
}
.lg-roman li::before {
  content: "(" counter(roman, lower-roman) ")";
  position: absolute;
  left: 14px;
  top: 10px;
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--blue-600);
}
.lg-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 16px;
}
.lg-chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
}
.lg-chips i {
  color: var(--blue-600);
}
/* cookie cards */
.lg-cookies {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 10px 0 16px;
}
.lg-cookie {
  padding: 18px;
  border-radius: 18px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  transition:
    transform 0.3s,
    border-color 0.3s,
    background 0.3s;
}
.lg-cookie:hover {
  transform: translateY(-4px);
  background: #fff;
  border-color: #c9d9ff;
}
.lg-cookie__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.lg-cookie__head span {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--grad-primary);
}
.lg-cookie__head strong {
  font-family: var(--font-head);
  font-size: 14.5px;
  line-height: 1.3;
  color: var(--ink);
}
.lg-cookie dl {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.lg-cookie dl div {
  display: inline-flex;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: #fff;
  border: 1px solid var(--line);
}
.lg-cookie dt {
  color: var(--muted);
}
.lg-cookie dt::after {
  content: ":";
}
.lg-cookie dd {
  margin: 0;
  font-weight: 700;
  color: var(--ink);
}
.lg-cookie p {
  font-size: 13.5px !important;
  line-height: 1.65 !important;
}
/* contact */
.lg-sec--contact {
  background:
    radial-gradient(360px 240px at 100% 0%, rgba(46, 230, 242, 0.12), transparent 70%),
    #fff;
}
.lg-contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}
.lg-contact > a,
.lg-contact > div {
  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: 14px;
  align-items: center;
  padding: 16px;
  border-radius: 18px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  transition:
    transform 0.3s,
    border-color 0.3s,
    background 0.3s;
}
.lg-contact > a:hover {
  transform: translateY(-3px);
  background: #fff;
  border-color: #c9d9ff;
}
.lg-contact span {
  grid-row: 1 / span 2;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--grad-primary);
}
.lg-contact small {
  font-size: 12px;
  color: var(--muted);
}
.lg-contact b {
  overflow: hidden;
  font-family: var(--font-head);
  font-size: 14.5px;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--ink);
}

/* top reading-progress bar */
.lg-progress {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1200;
  width: 100%;
  height: 3px;
  pointer-events: none;
}
.lg-progress b {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--blue-600), var(--cyan));
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1100px) {
  .lg-cookies {
    grid-template-columns: 1fr;
  }
  .lg-glance__grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 1024px) {
  .lg-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .lg-toc {
    position: sticky;
    top: calc(var(--header-h, 80px) + 8px);
    z-index: 5;
    max-height: none;
  }
  .lg-toc__box summary {
    cursor: pointer;
  }
  .lg-toc__box summary::after {
    content: "\f078";
    margin-left: 8px;
    font-family: "Font Awesome 6 Free";
    font-size: 11px;
    font-weight: 900;
    color: var(--muted);
    transition: transform 0.3s;
  }
  .lg-toc__box[open] summary::after {
    transform: rotate(180deg);
  }
  .lg-toc__box {
    box-shadow: var(--shadow);
  }
  .lg-toc__list {
    max-height: 50vh;
  }
  .lg-help {
    display: none;
  }
}
@media (max-width: 720px) {
  .lg-hero {
    padding: 120px 0 80px;
  }
  .lg-hero p {
    font-size: 15.5px;
  }
  .lg-btn {
    padding: 11px 18px;
    font-size: 13.5px;
  }
  .lg-glance {
    padding: 18px 16px 14px;
  }
  .lg-glance__grid {
    grid-template-columns: 1fr;
  }
  .lg-body {
    padding: 44px 0 70px;
  }
  .lg-sec {
    padding: 24px 18px;
    border-radius: 20px;
  }
  .lg-sec h2 {
    gap: 12px;
  }
  .lg-sec__no {
    width: 36px;
    height: 36px;
    font-size: 13px;
  }
  .lg-anchor {
    display: none;
  }
  .lg-defs > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .lg-contact {
    grid-template-columns: 1fr;
  }
  .lg-sec p,
  .lg-list li,
  .lg-roman li {
    font-size: 14.5px;
  }
}

/* ==========================================================
   PRINT – clean document only
   ========================================================== */
@media print {
  .site-header,
  .topbar,
  header,
  footer,
  .lg-toc,
  .lg-hero__actions,
  .lg-hero__meta li:not(:first-child),
  .lg-hero__icon,
  .crumbs,
  .lg-progress,
  .lg-glance,
  .lg-anchor,
  .to-top,
  .wa,
  [class*="whatsapp"],
  .fcta-wrap {
    display: none !important;
  }
  body {
    background: #fff !important;
  }
  .lg-hero {
    padding: 0 0 16px;
    color: #000;
    background: none;
  }
  .lg-hero__bg {
    display: none;
  }
  .lg-hero h1,
  .lg-hero h1 span {
    color: #000 !important;
  }
  .lg-hero p,
  .lg-hero__meta li {
    color: #333;
    background: none;
    border: 0;
  }
  .lg-body {
    padding: 0;
    background: none;
  }
  .lg-layout {
    display: block;
  }
  .lg-sec {
    padding: 0 0 12px;
    border: 0;
    box-shadow: none;
    break-inside: avoid-page;
  }
  .lg-sec__no {
    color: #000;
    background: none;
    border: 1px solid #000;
  }
  .reveal {
    opacity: 1 !important;
    animation: none !important;
  }
}
