/* ═══════════════════════════════════════════════════════════════════
   PUZZLEBOOK CREATOR AI — LEGAL & COMPLIANCE STYLESHEET
   Aesthetics: Clean, Premium, High-Trust Modern Light Design
   Mobile-First & 100% Responsive
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-alt: #f1f5f9;
  --text-main: #334155;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  
  --indigo: #4f46e5;
  --indigo-dark: #4338ca;
  --indigo-light: #6366f1;
  --purple: #7c3aed;
  --emerald: #10b981;
  --emerald-dark: #059669;
  --amber: #f59e0b;

  --border-light: #e2e8f0;
  --border-focus: #c7d2fe;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 14px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 10px 25px rgba(15, 23, 42, 0.1);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--indigo);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--purple);
}

.container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ══════════ LEGAL HEADER / NAVBAR ══════════ */
.legal-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
}
.legal-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.legal-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.12rem;
  color: var(--text-dark);
  text-decoration: none;
}
.legal-brand-badge {
  background: #eef2ff;
  color: var(--indigo);
  border: 1px solid #c7d2fe;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.legal-back-home {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  transition: all 0.2s ease;
}
.legal-back-home:hover {
  color: var(--indigo);
  border-color: var(--border-focus);
  background: #ffffff;
}

/* ══════════ LEGAL PAGE HERO & CARD ══════════ */
.legal-main {
  flex: 1;
  padding: 48px 0 64px;
}
.legal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 44px 48px;
  box-shadow: var(--shadow-md);
}

.legal-title-wrap {
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
}
.legal-category-pill {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.75px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #eef2ff;
  color: var(--indigo);
  border: 1px solid #c7d2fe;
  margin-bottom: 12px;
}
.legal-title {
  font-size: 2.1rem;
  font-weight: 900;
  color: var(--text-dark);
  line-height: 1.25;
  margin-bottom: 8px;
}
.legal-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Legal Content Typography */
.legal-content h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-top: 32px;
  margin-bottom: 12px;
  line-height: 1.3;
}
.legal-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-top: 20px;
  margin-bottom: 8px;
}
.legal-content p {
  font-size: 0.96rem;
  margin-bottom: 16px;
  line-height: 1.75;
}
.legal-content ul, .legal-content ol {
  margin-left: 20px;
  margin-bottom: 20px;
  font-size: 0.96rem;
}
.legal-content li {
  margin-bottom: 8px;
  line-height: 1.65;
}
.legal-content strong {
  color: var(--text-dark);
}

/* Callout Note Boxes */
.legal-alert-box {
  background: #f8fafc;
  border-left: 4px solid var(--indigo);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 0.92rem;
  color: var(--text-main);
  border-top: 1px solid var(--border-light);
  border-right: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.legal-alert-box.amber {
  border-left-color: var(--amber);
  background: #fffdf5;
}

/* ══════════ CONTACT PAGE STYLES ══════════ */
.contact-grid-wrap {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  margin-top: 28px;
}
.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-channel-card {
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 22px;
  transition: all 0.2s ease;
}
.contact-channel-card:hover {
  background: #ffffff;
  border-color: var(--border-focus);
  box-shadow: var(--shadow-sm);
}
.channel-icon {
  font-size: 1.6rem;
  margin-bottom: 8px;
}
.channel-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 4px;
}
.channel-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 8px;
}
.channel-link {
  font-size: 0.94rem;
  font-weight: 800;
  color: var(--indigo);
  word-break: break-all;
}

/* Contact Form */
.contact-form-panel {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.form-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.form-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.form-group {
  margin-bottom: 16px;
}
.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-main);
  font-size: 0.92rem;
  color: var(--text-dark);
  background: var(--bg-page);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--indigo);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}
.form-textarea {
  min-height: 110px;
  resize: vertical;
}
.btn-submit-contact {
  display: block;
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--indigo) 0%, var(--purple) 100%);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.25);
  transition: all 0.2s ease;
}
.btn-submit-contact:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.35);
}
.form-success-alert {
  display: none;
  background: #ecfdf5;
  border: 1.5px solid #a7f3d0;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  color: #065f46;
  font-size: 0.92rem;
  font-weight: 600;
  margin-top: 16px;
  text-align: center;
}

/* ══════════ LEGAL FOOTER ══════════ */
.legal-footer {
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  padding: 36px 0;
  text-align: center;
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-top: auto;
}
.legal-footer-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.legal-footer-nav a {
  font-weight: 700;
  color: var(--text-dark);
}
.legal-footer-nav a:hover {
  color: var(--indigo);
}
.legal-footer-sep {
  color: #cbd5e1;
  user-select: none;
}
.legal-footer p {
  line-height: 1.6;
}

/* ══════════ RESPONSIVE BREAKPOINTS ══════════ */
@media (max-width: 768px) {
  .legal-card {
    padding: 30px 22px;
  }
  .legal-title {
    font-size: 1.7rem;
  }
  .contact-grid-wrap {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 14px;
  }
  .legal-brand {
    font-size: 1rem;
  }
  .legal-card {
    padding: 24px 16px;
  }
  .legal-title {
    font-size: 1.45rem;
  }
}
