/* ============================================================
   MillenETech — legal.css
   Shared styles for privacy.html and support.html
   ============================================================ */

/* ── Legal Hero ─────────────────────────────────────────────── */
.legal-hero {
  position: relative;
  padding: calc(var(--nav-height) + 4rem) 0 4rem;
  overflow: hidden;
}

.legal-hero-inner {
  position: relative;
  z-index: 1;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  transition: color 0.2s;
}

.legal-back:hover { color: var(--text-primary); }

.legal-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin: 0.75rem 0 1rem;
}

.legal-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
}

.legal-updated {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 1rem;
  letter-spacing: 0.05em;
}

/* ── Legal Body Layout ──────────────────────────────────────── */
.legal-body {
  background: var(--bg-secondary);
  padding: 5rem 0;
}

.legal-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 4rem;
  align-items: start;
}

/* ── Table of Contents ──────────────────────────────────────── */
.legal-toc {
  position: sticky;
  top: calc(var(--nav-height) + 2rem);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.5rem;
}

.toc-title {
  font-family: 'Syne', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.legal-toc ol {
  list-style: none;
  counter-reset: toc;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.legal-toc a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.legal-toc a:hover { color: var(--accent-blue); }

/* ── Legal Content ──────────────────────────────────────────── */
.legal-content { max-width: 720px; }

.legal-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
  line-height: 1.8;
  border-left: 3px solid var(--accent-blue);
  padding-left: 1.25rem;
}

.legal-section {
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border-subtle);
}

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

.legal-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

.legal-section h3 {
  font-size: 1rem;
  color: var(--text-primary);
  margin: 1.5rem 0 0.5rem;
}

.legal-section p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.legal-section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0.75rem 0 1rem;
  padding-left: 0;
}

.legal-section ul li {
  color: var(--text-muted);
  padding-left: 1.25rem;
  position: relative;
  font-size: 0.95rem;
  line-height: 1.7;
}

.legal-section ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent-blue);
}

.legal-callout {
  background: rgba(59,130,246,0.08);
  border: 1px solid rgba(59,130,246,0.25);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  color: var(--text-primary);
  font-size: 0.95rem;
  margin: 1rem 0;
}

.legal-link {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color 0.2s;
}

.legal-link:hover { color: #60a5fa; }

.legal-contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 1rem;
}

.legal-contact-card p {
  margin: 0;
  line-height: 1.8;
}

/* ── Support Page Specific ──────────────────────────────────── */
.support-contact-section {
  background: var(--bg-primary);
  padding: 4rem 0 3rem;
}

.support-contact-card {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 3rem;
  border-left: 4px solid var(--accent-blue);
}

.support-email-icon {
  width: 56px;
  height: 56px;
  color: var(--accent-blue);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.support-email-icon svg { width: 100%; height: 100%; }

.support-contact-card h2 { margin-bottom: 0.5rem; font-size: 1.5rem; }
.support-contact-card p  { margin-bottom: 0.75rem; }

.support-email-link {
  display: inline-block;
  font-size: 1.25rem;
  font-weight: 700;
  font-family: 'Syne', sans-serif;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  transition: opacity 0.2s;
}

.support-email-link:hover { opacity: 0.8; }

.support-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.75rem;
  margin-top: 0.75rem !important;
}

/* Support request cards */
.support-requests { background: var(--bg-secondary); padding: 5rem 0; }

.support-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.support-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.support-card:hover {
  border-color: rgba(59,130,246,0.4);
  box-shadow: 0 0 28px rgba(59,130,246,0.1);
  transform: translateY(-4px);
}

.support-card-icon { font-size: 2rem; margin-bottom: 1rem; display: block; }
.support-card h3   { margin-bottom: 0.75rem; font-size: 1.1rem; color: var(--text-primary); }
.support-card p    { font-size: 0.9rem; margin-bottom: 0.75rem; }

.support-code {
  background: rgba(59,130,246,0.08);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: 8px;
  padding: 0.6rem 1rem;
  font-family: monospace;
  font-size: 0.85rem;
  color: #60a5fa;
  margin: 0.5rem 0 0.75rem;
}

.support-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0;
  margin: 0.5rem 0;
}

.support-list li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-left: 1.1rem;
  position: relative;
}

.support-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-blue);
  font-size: 0.75rem;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 800px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.3s;
}

.faq-item[open] { border-color: rgba(59,130,246,0.3); }

.faq-question {
  list-style: none;
  padding: 1.25rem 1.5rem;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  transition: color 0.2s;
}

.faq-question::-webkit-details-marker { display: none; }

.faq-question::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--accent-blue);
  transition: transform 0.25s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item[open] .faq-question::after { transform: rotate(45deg); }
.faq-item[open] .faq-question { color: var(--accent-blue); }

.faq-answer {
  padding: 0 1.5rem 1.25rem;
}

.faq-answer p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc    { position: static; }
  .support-cards { grid-template-columns: 1fr; }
  .support-contact-card { flex-direction: column; gap: 1.5rem; padding: 2rem; }
}

@media (max-width: 600px) {
  .legal-hero h1 { font-size: 2.2rem; }
}
