/* SooperKanoon - Legal pages (Terms, Privacy, Disclaimer) */

.sk-legal-page {
  background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 38%, #f8fafc 100%);
  min-height: 60vh;
  padding-bottom: 3rem;
}

.sk-legal-page .sk-container {
  padding-top: 0;
}

/* ── Hero ─────────────────────────────────────────────────────── */
.sk-legal-hero {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 46%, #4338ca 100%);
  border-radius: 0 0 24px 24px;
  padding: 2.5rem 1.5rem 2.75rem;
  margin: 0 -1rem 2rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}

@media (min-width: 640px) {
  .sk-legal-hero {
    margin: 0 0 2rem;
    border-radius: 20px;
    padding: 2.75rem 2.25rem 3rem;
  }
}

.sk-legal-hero::before,
.sk-legal-hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.sk-legal-hero::before {
  top: -45%;
  right: -6%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.22) 0%, transparent 68%);
}

.sk-legal-hero::after {
  bottom: -55%;
  left: -8%;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.14) 0%, transparent 70%);
}

.sk-legal-hero__inner {
  position: relative;
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
}

.sk-legal-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #c7d2fe;
  margin-bottom: 1rem;
}

.sk-legal-hero__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.sk-legal-hero__title span {
  background: linear-gradient(90deg, #c7d2fe, #e0e7ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sk-legal-hero__subtitle {
  margin: 0 auto 1.75rem;
  max-width: 34rem;
  font-size: 1rem;
  line-height: 1.65;
  color: #c7d2fe;
}

.sk-legal-search {
  position: relative;
  max-width: 32rem;
  margin: 0 auto;
}

.sk-legal-search__icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem;
  height: 1.25rem;
  color: #94a3b8;
  pointer-events: none;
}

.sk-legal-search__input {
  width: 100%;
  padding: 0.95rem 3rem 0.95rem 3rem;
  border: 0;
  border-radius: 14px;
  background: #fff;
  color: #0f172a;
  font-size: 1rem;
  line-height: 1.4;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.18);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.sk-legal-search__input::placeholder {
  color: #94a3b8;
}

.sk-legal-search__input:focus {
  outline: none;
  box-shadow: 0 16px 48px rgba(79, 70, 229, 0.28);
  transform: translateY(-1px);
}

.sk-legal-search__clear {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.sk-legal-search__clear:hover {
  background: #e2e8f0;
  color: #334155;
}

.sk-legal-search__clear.is-visible {
  display: inline-flex;
}

.sk-legal-hero__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  margin-top: 1.25rem;
  font-size: 0.8125rem;
  color: #a5b4fc;
}

.sk-legal-hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* ── Layout ───────────────────────────────────────────────────── */
.sk-legal-layout {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .sk-legal-layout {
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
    align-items: start;
  }
}

.sk-legal-sidebar {
  position: sticky;
  top: 6rem;
}

.sk-legal-sidebar-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.sk-legal-sidebar__label {
  margin: 0 0 0.75rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}

.sk-legal-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 50vh;
  overflow-y: auto;
}

.sk-legal-nav li + li {
  margin-top: 0.15rem;
}

.sk-legal-nav a {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  color: #475569;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.sk-legal-nav a:hover,
.sk-legal-nav a.is-active {
  background: #eef2ff;
  color: #4338ca;
}

.sk-legal-nav__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  border-radius: 6px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 0.6875rem;
  font-weight: 700;
  flex-shrink: 0;
}

.sk-legal-nav a:hover .sk-legal-nav__num,
.sk-legal-nav a.is-active .sk-legal-nav__num {
  background: #6366f1;
  color: #fff;
}

.sk-legal-sidebar-divider {
  height: 1px;
  background: #e2e8f0;
  margin: 1rem 0;
}

.sk-legal-related {
  display: grid;
  gap: 0.5rem;
}

.sk-legal-related-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #334155;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.sk-legal-related-link:hover {
  border-color: #c7d2fe;
  background: #eef2ff;
  color: #4338ca;
}

.sk-legal-related-link.is-current {
  border-color: #a5b4fc;
  background: #eef2ff;
  color: #4338ca;
  pointer-events: none;
}

.sk-legal-related-link svg {
  width: 1rem;
  height: 1rem;
  color: #6366f1;
  flex-shrink: 0;
}

/* ── Toolbar ──────────────────────────────────────────────────── */
.sk-legal-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 1.25rem;
}

.sk-legal-toolbar__hint {
  font-size: 0.8125rem;
  color: #64748b;
}

.sk-legal-actions {
  display: flex;
  gap: 0.5rem;
}

.sk-legal-action-btn {
  padding: 0.45rem 0.85rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  color: #64748b;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sk-legal-action-btn:hover {
  border-color: #cbd5e1;
  color: #334155;
}

/* ── Intro card ───────────────────────────────────────────────── */
.sk-legal-intro {
  margin-bottom: 1.25rem;
  padding: 1.25rem 1.35rem;
  border-radius: 14px;
  border: 1px solid #c7d2fe;
  background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 100%);
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #334155;
}

.sk-legal-intro p {
  margin: 0;
}

.sk-legal-intro a {
  color: #4f46e5;
  font-weight: 600;
  text-decoration: none;
}

.sk-legal-intro a:hover {
  text-decoration: underline;
}

/* ── Sections accordion ───────────────────────────────────────── */
.sk-legal-list {
  display: grid;
  gap: 0.75rem;
}

.sk-legal-item {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sk-legal-item:hover {
  border-color: #c7d2fe;
}

.sk-legal-item[open] {
  border-color: #a5b4fc;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.1);
}

.sk-legal-item.is-hidden {
  display: none;
}

.sk-legal-item__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.sk-legal-item__header::-webkit-details-marker {
  display: none;
}

.sk-legal-item__header::marker {
  content: '';
}

.sk-legal-item__title-wrap {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  min-width: 0;
}

.sk-legal-item__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  border-radius: 10px;
  background: #eef2ff;
  color: #4f46e5;
  font-size: 0.8125rem;
  font-weight: 800;
  flex-shrink: 0;
}

.sk-legal-item__title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.45;
  color: #0f172a;
}

.sk-legal-item__chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  flex-shrink: 0;
  transition: transform 0.25s ease, background 0.2s ease, color 0.2s ease;
}

.sk-legal-item[open] .sk-legal-item__chevron {
  transform: rotate(180deg);
  background: #eef2ff;
  color: #4f46e5;
}

.sk-legal-item__body {
  padding: 0 1.25rem 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: #475569;
}

.sk-legal-item__body p {
  margin: 0 0 0.85rem;
}

.sk-legal-item__body p:last-child {
  margin-bottom: 0;
}

.sk-legal-item__body ul {
  margin: 0.5rem 0 0.85rem;
  padding-left: 1.25rem;
}

.sk-legal-item__body li {
  margin-bottom: 0.5rem;
}

.sk-legal-item__body a {
  color: #4f46e5;
  font-weight: 600;
  text-decoration: none;
}

.sk-legal-item__body a:hover {
  text-decoration: underline;
}

.sk-legal-item__body mark {
  background: #fef08a;
  color: #713f12;
  padding: 0.05rem 0.15rem;
  border-radius: 3px;
}

.sk-legal-item__body b,
.sk-legal-item__body strong {
  color: #1e293b;
  font-weight: 700;
}

/* ── Note / footer block ──────────────────────────────────────── */
.sk-legal-note {
  margin-top: 1.25rem;
  padding: 1.15rem 1.25rem;
  border-radius: 14px;
  border: 1px solid #fde68a;
  background: #fffbeb;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #78350f;
}

.sk-legal-note b,
.sk-legal-note strong {
  color: #92400e;
}

/* ── Empty state ──────────────────────────────────────────────── */
.sk-legal-empty {
  display: none;
  text-align: center;
  padding: 3rem 1.5rem;
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
  background: #fff;
}

.sk-legal-empty.is-visible {
  display: block;
}

.sk-legal-empty__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: #94a3b8;
  margin-bottom: 1rem;
}

.sk-legal-empty__icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.sk-legal-empty__title {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f172a;
}

.sk-legal-empty__text {
  margin: 0;
  font-size: 0.9375rem;
  color: #64748b;
}

/* ── CTA ──────────────────────────────────────────────────────── */
.sk-legal-cta {
  margin-top: 2.5rem;
  padding: 2rem 1.5rem;
  border-radius: 18px;
  background: linear-gradient(135deg, #312e81 0%, #4338ca 100%);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.sk-legal-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.12) 0%, transparent 50%);
  pointer-events: none;
}

.sk-legal-cta__inner {
  position: relative;
}

.sk-legal-cta__title {
  margin: 0 0 0.5rem;
  font-size: 1.375rem;
  font-weight: 800;
}

.sk-legal-cta__text {
  margin: 0 auto 1.5rem;
  max-width: 28rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #c7d2fe;
}

.sk-legal-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.sk-legal-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.sk-legal-cta__btn:hover {
  transform: translateY(-1px);
}

.sk-legal-cta__btn--primary {
  background: #fff;
  color: #312e81;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.sk-legal-cta__btn--ghost {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
}

@media (max-width: 1023px) {
  .sk-legal-sidebar {
    position: static;
  }

  .sk-legal-nav {
    max-height: none;
  }
}

@media (max-width: 639px) {
  .sk-legal-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .sk-legal-actions {
    justify-content: stretch;
  }

  .sk-legal-action-btn {
    flex: 1;
    text-align: center;
  }
}
