/* ==========================================================================
   assets/css/legal.css
   Privacy Policy + Terms & Conditions, in the homepage design.
   Loaded after home.css. Prefix "icl-".
   ========================================================================== */

/* Hero: compact version of the homepage hero */
.icl-hero { padding-bottom: 48px; }
.icl-hero__inner { max-width: 820px; }
.icl-hero .ic-hero__title { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.2rem); }
.icl-hero .ic-hero__lead { max-width: 40em; }

/* Layout: sticky contents list + document */
.icl-body { padding: 8px 0 80px; }
.icl-layout {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.icl-toc { position: sticky; top: calc(var(--ic-nav-space) + 20px); display: grid; gap: 14px; }
.icl-toc__box {
  padding: 18px 16px 14px;
  border-radius: var(--ic-r-lg);
  background: #fff;
  border: 1px solid var(--ic-line);
  box-shadow: var(--ic-sh-sm);
}
.icl-toc__box summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px 10px;
  list-style: none;
  cursor: pointer;
  font: 800 13px/1.2 var(--ic-font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ic-blue-600);
}
.icl-toc__box summary::-webkit-details-marker { display: none; }
.icl-toc__box summary .ai-icon { width: 16px; height: 16px; transition: transform 0.2s var(--ic-ease); }
.icl-toc__box:not([open]) summary { padding-bottom: 0; }
.icl-toc__box:not([open]) summary .ai-icon { transform: rotate(-90deg); }
.icl-toc ol { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.icl-toc ol a {
  display: flex;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 10px;
  font: 500 14px/1.4 var(--ic-font-body);
  color: var(--ic-text);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.icl-toc ol a span { min-width: 20px; color: var(--ic-muted); font-weight: 600; }
.icl-toc ol a:hover, .icl-toc ol a.is-active { color: var(--ic-blue-700); background: var(--ic-blue-50); }

.icl-toc__other {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--ic-r-md);
  background: var(--ic-blue-50);
  border: 1px solid var(--ic-blue-100);
  font: 700 14px/1.3 var(--ic-font-body);
  color: var(--ic-blue-700);
  text-decoration: none;
}
.icl-toc__other span:nth-child(2) { flex: 1; }
.icl-toc__other > .ai-icon { width: 16px; height: 16px; }
a.icl-toc__other:hover { color: var(--ic-blue-700); border-color: var(--ic-blue-200); }

/* Document */
.icl-doc {
  padding: 12px 44px 40px;
  border-radius: var(--ic-r-xl);
  background: #fff;
  border: 1px solid var(--ic-line);
  box-shadow: var(--ic-sh-md);
}
.icl-sec { padding: 30px 0 4px; scroll-margin-top: calc(var(--ic-nav-space) + 20px); }
.icl-sec + .icl-sec { border-top: 1px solid var(--ic-line-soft); }
.icl-sec h2 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
  font: 800 22px/1.3 var(--ic-font-display);
  letter-spacing: -0.02em;
  color: var(--ic-navy);
}
.icl-sec__num { font: 800 14px/1 var(--ic-font-display); color: var(--ic-blue-500); }
.icl-sec p, .icl-sec li { font-size: 15.5px; line-height: 1.75; color: var(--ic-text); }
.icl-sec p + p, .icl-sec p + ul, .icl-sec ul + p, .icl-sec .icl-contact + p { margin-top: 12px; }
.icl-sec ul:not(.icl-contact) { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.icl-sec ul:not(.icl-contact) li { position: relative; padding-left: 22px; }
.icl-sec ul:not(.icl-contact) li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ic-blue-500), var(--ic-cyan));
}
/* Sub-headings (e.g. "2.1 Personal and Profile Information") and numbered lists */
.icl-sec h3 { margin: 22px 0 8px; font: 700 16.5px/1.4 var(--ic-font-display); color: var(--ic-navy); }
.icl-sec h2 + h3, .icl-sec p + h3:first-of-type { margin-top: 14px; }
.icl-sec p + ol, .icl-sec ol + p { margin-top: 12px; }
.icl-sec ol { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; counter-reset: icl-ol; }
.icl-sec ol li { position: relative; padding-left: 30px; counter-increment: icl-ol; }
.icl-sec ol li::before {
  content: counter(icl-ol) ".";
  position: absolute;
  left: 0;
  top: 0;
  min-width: 22px;
  font: 700 14px/1.75 var(--ic-font-display);
  color: var(--ic-blue-500);
}
.icl-sec strong { color: var(--ic-ink); }
.icl-sec a { color: var(--ic-blue-600); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.icl-sec a:hover { color: var(--ic-blue-700); }

.icl-contact {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 18px 20px;
  list-style: none;
  border-radius: var(--ic-r-md);
  background: var(--ic-bg-soft);
  border: 1px solid var(--ic-line);
}
.icl-contact li { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 12px; font-size: 15px; line-height: 1.55; }
.icl-contact strong { font-weight: 700; color: var(--ic-muted); }
.icl-contact a, .icl-contact span { overflow-wrap: anywhere; }

.icl-help {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 36px;
  padding: 22px 24px;
  border-radius: var(--ic-r-lg);
  background: linear-gradient(135deg, var(--ic-blue-50), #F4FBFF);
  border: 1px solid var(--ic-blue-100);
}
.icl-help > div { flex: 1; min-width: 0; }
.icl-help h2 { font: 800 19px/1.25 var(--ic-font-display); color: var(--ic-navy); }
.icl-help p { margin-top: 4px; font-size: 14.5px; color: var(--ic-muted); }
.icl-help .ic-btn { border-radius: 999px; flex-shrink: 0; }

/* Responsive */
@media (max-width: 960px) {
  .icl-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .icl-toc { position: static; }
  .icl-doc { padding: 4px 28px 32px; }
}
@media (max-width: 640px) {
  .icl-hero { padding-bottom: 32px; }
  .icl-body { padding-bottom: 56px; }
  .icl-doc { padding: 0 18px 24px; border-radius: var(--ic-r-lg); }
  .icl-sec { padding-top: 24px; }
  .icl-sec h2 { font-size: 19px; }
  .icl-sec p, .icl-sec li { font-size: 15px; }
  .icl-contact { padding: 14px 16px; }
  .icl-contact li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .icl-help { flex-direction: column; align-items: flex-start; padding: 20px; }
  .icl-help .ic-btn { width: 100%; }
}
