/* ============================================================
   RomIQ Solutions — Legal Pages (Terms, Privacy, Refund)
   ============================================================ */

/* ── HERO ── */
.legal-hero {
  padding: 160px 52px 72px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.legal-hero::before {
  content: 'LEGAL';
  position: absolute;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20vw;
  color: rgba(255,255,255,0.012);
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  pointer-events: none;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.legal-hero .section-tag {
  font-family: 'Chivo Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet2);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.legal-hero .section-tag::before {
  content: '//';
  opacity: 0.5;
}

.legal-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.92;
  letter-spacing: 0.04em;
  color: var(--text);
  font-weight: 400;
  margin-bottom: 20px;
}

.legal-title .accent { color: var(--cyan); }

.legal-meta {
  font-family: 'Chivo Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  opacity: 0.7;
}

.legal-meta strong {
  color: var(--muted);
  opacity: 1;
}

/* ── BODY LAYOUT ── */
.legal-body {
  padding: 80px 52px 120px;
}

.legal-container {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 64px;
  align-items: start;
}

/* ── TABLE OF CONTENTS ── */
.legal-toc {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.toc-label {
  font-family: 'Chivo Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 16px;
  opacity: 0.8;
}

.legal-toc a {
  font-family: 'Chivo Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-decoration: none;
  padding: 8px 0 8px 12px;
  border-left: 1px solid var(--border);
  transition: color 0.2s, border-color 0.2s, padding-left 0.2s;
  line-height: 1.4;
}

.legal-toc a:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  padding-left: 16px;
}

/* ── CONTENT ── */
.legal-content {
  min-width: 0;
}

.legal-intro {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 300;
  color: var(--text);
  line-height: 1.9;
  margin-bottom: 56px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
  opacity: 0.85;
}

/* ── SECTIONS ── */
.legal-section {
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 100px;
}

.legal-section:last-child {
  border-bottom: none;
}

.legal-section h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  letter-spacing: 0.06em;
  color: var(--text);
  font-weight: 400;
  margin-bottom: 20px;
  display: flex;
  align-items: baseline;
  gap: 16px;
  line-height: 1;
}

.sec-num {
  font-family: 'Chivo Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--cyan);
  opacity: 0.6;
  padding-top: 4px;
  flex-shrink: 0;
}

.legal-section p {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 16px;
}

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

.legal-section a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(0,229,255,0.25);
  transition: border-color 0.2s;
}

.legal-section a:hover {
  border-color: var(--cyan);
}

/* ── LISTS ── */
.legal-section ul {
  list-style: none;
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.legal-section ul li {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.75;
  padding: 10px 0 10px 24px;
  border-top: 1px solid var(--border);
  position: relative;
}

.legal-section ul li:last-child {
  border-bottom: 1px solid var(--border);
}

.legal-section ul li::before {
  content: '✦';
  font-size: 0.45rem;
  color: var(--cyan);
  position: absolute;
  left: 0;
  top: 14px;
  opacity: 0.7;
}

.legal-section ul li strong {
  color: var(--text);
  font-weight: 500;
}

/* ── HIGHLIGHT BOX (Refund Policy warning) ── */
.legal-highlight {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: rgba(0,229,255,0.04);
  border: 1px solid rgba(0,229,255,0.15);
  border-left: 3px solid var(--cyan);
  padding: 20px 24px;
  border-radius: 2px;
  margin: 20px 0;
}

.highlight-icon {
  font-size: 1rem;
  color: var(--cyan);
  flex-shrink: 0;
  margin-top: 2px;
}

.legal-highlight p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text);
  opacity: 0.9;
}

/* ── CONTACT BOX ── */
.legal-contact-box {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-left: 2px solid var(--cyan);
  padding: 24px 28px;
  border-radius: 2px;
  font-family: 'Cabinet Grotesk', sans-serif;
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 2;
  margin-top: 16px;
}

.legal-contact-box strong {
  color: var(--text);
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
}

.legal-contact-box a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(0,229,255,0.25);
  transition: border-color 0.2s;
}

.legal-contact-box a:hover {
  border-color: var(--cyan);
}

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  .legal-hero {
    padding: 120px 24px 56px;
  }

  .legal-body {
    padding: 56px 24px 80px;
  }

  .legal-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .legal-toc {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
  }

  .toc-label {
    width: 100%;
    margin-bottom: 8px;
  }

  .legal-toc a {
    border: 1px solid var(--border);
    border-left: 1px solid var(--border);
    padding: 6px 12px;
    border-radius: 2px;
    font-size: 0.58rem;
  }

  .legal-toc a:hover {
    padding-left: 12px;
    border-color: rgba(0,229,255,0.4);
  }
}

@media (max-width: 480px) {
  .legal-title {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }
}
