/* ============================================================================
   LEGAL PAGES — Privacy Policy (/privacy) & User Agreement (/user-agreement)
   Route-scoped stylesheet (see app/[slug]/page.tsx getRouteStyles). Reuses the
   shared .ll-container / .ll-solsec / .ll-section-head / .ll-eyebrow
   primitives from limaxlock-home.css for section rhythm; everything below is
   specific to the two-column legal reading layout (sticky TOC + content).

   Dark register uses --ink-900 flat (documents/theme.md §6: "prefer the dark
   ink-900 hero for inner pages that need a heavier register") rather than a
   novel gradient, so the hero matches the same ink used by .ll-cta / .ll-security
   / .ll-footer elsewhere on the site.
   ========================================================================== */

/* ── Reading progress bar ──────────────────────────────────────────────── */

.ll-legal-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  z-index: 1001;
  pointer-events: none;
}

.ll-legal-progress__bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--brand-500), var(--brand-700));
  transition: width 0.08s linear;
}

/* ── Hero (compact, ink-900) ───────────────────────────────────────────── */

.ll-legal-hero {
  position: relative;
  overflow: hidden;
  background: var(--ink-900);
  padding: 54px 0 50px;
}

.ll-legal-hero__grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(circle at 50% 45%, #000 0%, transparent 74%);
  mask-image: radial-gradient(circle at 50% 45%, #000 0%, transparent 74%);
}

.ll-legal-hero__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.ll-legal-hero__title {
  font-family: var(--ll-font-heading);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}

.ll-legal-hero__dates {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 14px;
}

.ll-legal-hero__date {
  font-family: var(--ll-font-ui);
  font-size: 12.5px;
  color: var(--brand-300);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 5px 13px;
  border-radius: 100px;
  backdrop-filter: blur(8px);
}

.ll-legal-hero__date strong { color: #fff; font-weight: 700; }

.ll-legal-hero__sub {
  font-family: var(--ll-font-body);
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-text);
  margin: 0;
}

@media (max-width: 560px) {
  .ll-legal-hero { padding: 40px 0 38px; }
}

/* ── "At a glance" — privacy summary cards ─────────────────────────────── */

.ll-legal-glance {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.ll-legal-glance__card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-top: 3px solid;
  border-radius: 16px;
  padding: 26px 24px;
}

.ll-legal-glance__card--teal { border-top-color: var(--brand-600); }
.ll-legal-glance__card--green { border-top-color: var(--success); }
.ll-legal-glance__card--deep { border-top-color: var(--brand-800); }

.ll-legal-glance__icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.ll-legal-glance__card--teal .ll-legal-glance__icon { background: var(--brand-50); color: var(--brand-600); }
.ll-legal-glance__card--green .ll-legal-glance__icon { background: var(--success-bg); color: var(--success); }
.ll-legal-glance__card--deep .ll-legal-glance__icon { background: var(--brand-100); color: var(--brand-800); }
.ll-legal-glance__icon svg { width: 22px; height: 22px; }

.ll-legal-glance__title {
  font-family: var(--ll-font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 14px;
}

.ll-legal-glance__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ll-legal-glance__list li {
  position: relative;
  padding-left: 24px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--slate-600);
}

.ll-legal-glance__list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.ll-legal-glance__card--teal .ll-legal-glance__list li::before { background: var(--brand-600); }
.ll-legal-glance__card--green .ll-legal-glance__list li::before { background: var(--success); }
.ll-legal-glance__card--deep .ll-legal-glance__list li::before { background: var(--brand-800); }

@media (max-width: 820px) {
  .ll-legal-glance { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
}

/* ── "At a glance" — terms checklist ───────────────────────────────────── */

.ll-legal-checklist {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  max-width: 880px;
  margin: 0 auto;
}

.ll-legal-checklist__item {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  padding: 16px 18px;
}

.ll-legal-checklist__check {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 8px;
  background: var(--success-bg);
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ll-legal-checklist__check svg { width: 14px; height: 14px; }

.ll-legal-checklist__text {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--slate-800, #1E293B);
  line-height: 1.45;
}

@media (max-width: 700px) {
  .ll-legal-checklist { grid-template-columns: 1fr; }
}

/* ── Layout: sticky TOC + content ───────────────────────────────────────── */

.ll-legal-layout {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  gap: 52px;
  align-items: start;
  max-width: 1120px;
  margin: 0 auto;
}

.ll-legal-toc { position: sticky; top: 96px; }

.ll-legal-toc__print {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-bottom: 20px;
  background: #fff;
  border: 1.5px solid var(--slate-200);
  border-radius: 10px;
  padding: 10px 14px;
  font-family: var(--ll-font-ui);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--slate-900);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.ll-legal-toc__print:hover { border-color: var(--brand-300); background: var(--slate-50); color: var(--brand-600); }
.ll-legal-toc__print svg { width: 15px; height: 15px; }

.ll-legal-toc__title {
  font-family: var(--ll-font-ui);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--slate-400);
  margin-bottom: 12px;
}

.ll-legal-toc__list { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--slate-200); }

.ll-legal-toc__list a {
  display: block;
  padding: 7px 0 7px 16px;
  margin-left: -2px;
  border-left: 2px solid transparent;
  font-family: var(--ll-font-ui);
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--slate-500);
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.ll-legal-toc__list a:hover { color: var(--brand-600); }
.ll-legal-toc__list a.is-active { color: var(--brand-600); border-left-color: var(--brand-600); font-weight: 700; }

@media (max-width: 900px) {
  .ll-legal-layout { grid-template-columns: 1fr; gap: 10px; }
  .ll-legal-toc { position: static; margin-bottom: 12px; }
  .ll-legal-toc__inner { background: var(--slate-50); border: 1px solid var(--slate-200); border-radius: 14px; padding: 18px 20px; }
  .ll-legal-toc__list { border-left: none; columns: 2; column-gap: 24px; }
  .ll-legal-toc__list a { padding: 5px 0; border-left: none; }
  .ll-legal-toc__list a.is-active { border-left: none; }
}

@media (max-width: 520px) {
  .ll-legal-toc__list { columns: 1; }
}

/* ── Content body ───────────────────────────────────────────────────────── */

.ll-legal { max-width: 100%; }

.ll-legal p {
  font-family: var(--ll-font-body);
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--slate-600);
  margin: 0 0 16px;
}

.ll-legal__intro { font-size: 16.5px; color: var(--slate-700, #334155); }
.ll-legal p strong { color: var(--slate-900); font-weight: 700; }

.ll-legal a { color: var(--brand-600); font-weight: 600; text-decoration: none; word-break: break-word; }
.ll-legal a:hover { text-decoration: underline; }

.ll-legal__h2 {
  font-family: var(--ll-font-heading);
  font-size: clamp(21px, 2.4vw, 27px);
  font-weight: 700;
  color: var(--slate-900);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 56px 0 14px;
  padding-top: 28px;
  border-top: 1px solid var(--slate-200);
  scroll-margin-top: 96px;
}

.ll-legal__h2:first-of-type { margin-top: 40px; }

.ll-legal__h3 {
  font-family: var(--ll-font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--slate-900);
  margin: 28px 0 10px;
}

.ll-legal__list { margin: 0 0 16px; padding-left: 4px; list-style: none; }

.ll-legal__list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 9px;
  font-family: var(--ll-font-body);
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--slate-600);
}

.ll-legal__list li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
}

.ll-legal__list li strong { color: var(--slate-900); }

/* ── Contact block ──────────────────────────────────────────────────────── */

.ll-legal-contact {
  background: linear-gradient(135deg, var(--ink-900) 0%, var(--ink-800) 100%);
  border-radius: 20px;
  padding: 30px;
  color: #fff;
  margin-top: 12px;
  box-shadow: var(--shadow-xl);
}

.ll-legal-contact__head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 22px; }

.ll-legal-contact__head-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--brand-300);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ll-legal-contact__head-icon svg { width: 23px; height: 23px; }

.ll-legal-contact__title {
  font-family: var(--ll-font-heading);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.ll-legal-contact__text { font-family: var(--ll-font-body); font-size: 14px; color: var(--ink-text); line-height: 1.55; margin: 0; }

.ll-legal-contact__items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.ll-legal-contact__item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 13px;
  padding: 14px 16px;
  text-decoration: none !important;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.ll-legal-contact__item:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.28); }

.ll-legal-contact__item-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 9px;
  background: rgba(47, 163, 201, 0.3);
  color: var(--brand-300);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ll-legal-contact__item-icon svg { width: 16px; height: 16px; }
.ll-legal-contact__item-text { min-width: 0; }

.ll-legal-contact__item-label {
  display: block;
  font-family: var(--ll-font-ui);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.ll-legal-contact__item-value {
  display: block;
  font-size: 13.5px;
  color: #fff;
  font-weight: 600;
  word-break: break-word;
  margin-top: 2px;
}

.ll-legal-contact__addr {
  font-family: var(--ll-font-body);
  font-size: 13px;
  color: var(--ink-text-muted);
  line-height: 1.5;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 16px;
}

@media (max-width: 640px) {
  .ll-legal-contact__items { grid-template-columns: 1fr; }
}

/* ── Related documents ──────────────────────────────────────────────────── */

.ll-legal-related { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }

.ll-legal-related__card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  padding: 16px 18px;
  text-decoration: none !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.ll-legal-related__card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--brand-300); }

.ll-legal-related__icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand-50), var(--brand-100));
  color: var(--brand-600);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ll-legal-related__icon svg { width: 18px; height: 18px; }
.ll-legal-related__name { font-family: var(--ll-font-heading); font-size: 14.5px; font-weight: 700; color: var(--slate-900); }


/* ── Print / PDF ────────────────────────────────────────────────────────── */

@media print {
  .ll-legal-progress,
  .ll-legal-hero__grid-bg,
  .ll-legal-toc,
  .ll-header,
  .ll-footer,
  .back-to-top,
  #scrollUp {
    display: none !important;
  }

  .ll-legal-layout { grid-template-columns: 1fr; gap: 0; max-width: 100%; }
  .ll-legal-hero { background: none; padding: 0 0 16px; }
  .ll-legal-hero__title { color: #000; }
  .ll-legal-hero__date { color: #000; background: none; border: 1px solid #ccc; }
  .ll-legal-hero__sub { color: #333; }
  .ll-legal-contact { background: none; color: #000; box-shadow: none; border: 1px solid #ccc; }
  .ll-legal-contact__title, .ll-legal-contact__item-value { color: #000; }
  .ll-legal-contact__text, .ll-legal-contact__item-label, .ll-legal-contact__addr { color: #333; }
  .ll-solsec { padding: 0 !important; }
}
