/* ============================================================
   SMARTOUCH — LEGAL CSS
   Shared styles for privacy.html and terms.html
   ============================================================ */

/* ----------------------------------------------------------
   PAGE WRAPPER
   ---------------------------------------------------------- */
.legal-page {
  padding: calc(var(--nav) + 56px) 0 96px;
  position: relative;
  overflow: hidden;
}
.legal-page::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 72px 72px;
  pointer-events: none;
}
.a1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(240,35,79,.10) 0%, transparent 70%);
  top: -160px; right: -80px;
  animation: ab 14s ease-in-out infinite;
}
.a2 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(123,47,255,.07) 0%, transparent 70%);
  bottom: 10%; left: -60px;
  animation: ab 18s ease-in-out infinite reverse;
}

/* ----------------------------------------------------------
   LAYOUT
   ---------------------------------------------------------- */
.legal-in {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  align-items: start;
}

/* ----------------------------------------------------------
   SIDEBAR TOC
   ---------------------------------------------------------- */
.legal-toc {
  position: sticky;
  top: calc(var(--nav) + 24px);
  background: var(--card);
  border: 1px solid var(--b);
  border-radius: var(--r2);
  padding: 20px;
}
.toc-title {
  font-family: var(--fd);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--w40);
  letter-spacing: .10em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.toc-link {
  display: block;
  font-size: 12.5px;
  color: var(--w40);
  padding: 7px 10px;
  border-radius: 7px;
  margin-bottom: 2px;
  transition: .15s;
  text-decoration: none;
  line-height: 1.4;
}
.toc-link:hover,
.toc-link.act {
  color: var(--w80);
  background: var(--w06);
}
.toc-link.act { color: var(--pink); }

/* ----------------------------------------------------------
   MAIN CONTENT
   ---------------------------------------------------------- */
.legal-header { margin-bottom: 48px; }
.legal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px 4px 8px;
  border-radius: 999px;
  background: rgba(240,35,79,.10);
  border: 1px solid rgba(240,35,79,.22);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 18px;
}
.legal-badge-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--pink);
}
.legal-title {
  font-family: var(--fd);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: .95;
  margin-bottom: 16px;
}
.legal-updated {
  font-size: 12px;
  color: var(--w40);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}
.legal-updated::before {
  content: '';
  display: inline-block;
  width: 16px; height: 1.5px;
  background: var(--grad);
}

/* Intro box */
.legal-intro {
  background: linear-gradient(135deg, rgba(240,35,79,.07), rgba(123,47,255,.05));
  border: 1px solid rgba(240,35,79,.15);
  border-radius: var(--r2);
  padding: 24px;
  font-size: 14px;
  color: var(--w60);
  line-height: 1.75;
}

/* ----------------------------------------------------------
   SECTION
   ---------------------------------------------------------- */
.legal-section {
  margin-bottom: 52px;
  scroll-margin-top: calc(var(--nav) + 24px);
}
.section-num {
  font-family: var(--fd);
  font-size: 10px;
  font-weight: 700;
  color: var(--pink);
  letter-spacing: .10em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.section-title {
  font-family: var(--fd);
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--w);
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--b);
}
.legal-body {
  font-size: 14.5px;
  color: var(--w60);
  line-height: 1.8;
}
.legal-body p  { margin-bottom: 16px; }
.legal-body p:last-child { margin-bottom: 0; }
.legal-body a  { color: var(--pink); text-decoration: underline; text-underline-offset: 3px; }
.legal-body a:hover { color: var(--orange); }
.legal-body strong { color: var(--w80); font-weight: 600; }

/* Lists */
.legal-list {
  list-style: none;
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.legal-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--w60);
  line-height: 1.65;
}
.legal-list li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--grad);
  flex-shrink: 0;
  margin-top: 8px;
}

/* Highlight / info box */
.legal-highlight {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--b);
  border-left: 3px solid var(--pink);
  border-radius: 0 var(--r) var(--r) 0;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 13.5px;
  color: var(--w60);
  line-height: 1.7;
}
.legal-highlight.warning {
  border-left-color: #FF9A3D;
}
.legal-highlight.info {
  border-left-color: #00D9B4;
}

/* Info cards grid (e.g. contact info) */
.legal-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}
.legal-info-card {
  background: var(--card);
  border: 1px solid var(--b);
  border-radius: var(--r);
  padding: 16px 18px;
}
.lic-label {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--w40);
  letter-spacing: .07em;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.lic-val { font-size: 14px; color: var(--w80); font-weight: 500; }

/* ----------------------------------------------------------
   RESPONSIVE
   ---------------------------------------------------------- */
@media (max-width: 1024px) {
  .legal-in { grid-template-columns: 200px 1fr; gap: 36px; }
}
@media (max-width: 768px) {
  .legal-in  { grid-template-columns: 1fr; }
  .legal-toc { display: none; }
  .legal-info-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .legal-title { font-size: clamp(30px, 8vw, 44px); }
}
