/* =====================================================
   MOBILE — LEGAL PAGES (Privacy, Terms, 404)
   Created by Prompt 08. Depends on mobile-global.css.
   ===================================================== */

@media (max-width: 768px) {

  /* ── LEGAL PAGES SHARED ── */
  .legal-hero, .privacy-hero, .terms-hero {
    min-height: 30vh;
    height: auto !important;
    padding: 100px 20px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    text-align: center;
  }

  .legal-hero-title,
  .legal-hero h1, .privacy-hero h1, .terms-hero h1 {
    font-size: 32px;
    margin-bottom: 8px;
  }

  .legal-hero-subtitle,
  .legal-hero .last-updated,
  .legal-hero p {
    font-size: 13px;
    color: var(--munk-sand);
  }

  .legal-content, .privacy-content, .terms-content {
    padding: 32px 20px 80px;
    max-width: 100%;
  }

  .legal-container {
    max-width: 100%;
  }

  .legal-section {
    margin-bottom: 2rem;
  }

  .legal-section-title,
  .legal-content h2 {
    font-size: 22px;
    margin-top: 40px;
    margin-bottom: 12px;
    padding-top: 24px;
    border-top: 1px solid rgba(82, 60, 31, 0.15);
  }

  .legal-content h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
  }

  .legal-content h3 {
    font-size: 18px;
    margin-top: 24px;
    margin-bottom: 8px;
  }

  .legal-section p,
  .legal-content p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--munk-sand);
    margin-bottom: 16px;
  }

  .legal-section ul,
  .legal-content ul, .legal-content ol {
    padding-left: 20px;
    margin-bottom: 16px;
  }

  .legal-section li,
  .legal-content li {
    font-size: 15px;
    line-height: 1.7;
    color: var(--munk-sand);
    margin-bottom: 8px;
  }

  .legal-section a,
  .legal-content a {
    color: var(--munk-amber);
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  .legal-content strong {
    color: var(--munk-cream);
    font-weight: 600;
  }

  .legal-content table {
    width: 100%;
    font-size: 14px;
    overflow-x: auto;
    display: block;
  }

  .legal-content th, .legal-content td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid rgba(82, 60, 31, 0.15);
    white-space: nowrap;
  }

  .legal-content th {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--munk-amber);
  }

  .legal-divider {
    margin: 2rem 0;
  }

  /* ── 404 PAGE ── */
  .error-section,
  .error-page, .page-404 {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    position: relative;
  }

  .error-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.15);
  }

  .error-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10,6,4,0.85) 0%, rgba(26,20,16,0.92) 50%, rgba(10,6,4,0.95) 100%);
  }

  .error-content {
    position: relative;
    z-index: 2;
    max-width: 320px;
  }

  .error-code,
  .error-page .error-code, .page-404 h1 {
    font-size: clamp(80px, 20vw, 120px);
    color: var(--munk-amber);
    line-height: 1;
    margin-bottom: 8px;
    opacity: 0.2;
  }

  .error-heading,
  .error-page h2, .page-404 h2 {
    font-size: clamp(20px, 5vw, 28px);
    color: var(--munk-cream);
    margin-bottom: 12px;
  }

  .error-tagline,
  .error-page p, .page-404 p {
    font-size: clamp(16px, 3.5vw, 20px);
    color: var(--munk-sand);
    font-style: italic;
    margin-bottom: 32px;
    opacity: 0.85;
    max-width: 280px;
  }

  .error-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
  }

  .error-actions .btn,
  .error-page .btn, .page-404 .btn {
    width: 100%;
    min-height: var(--mobile-touch-min);
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
  }

  .error-actions .btn--primary {
    background: var(--munk-amber);
    color: var(--munk-void);
    font-weight: 700;
  }

  .error-actions .btn--ghost {
    font-size: 14px;
    color: var(--munk-sand);
  }

  /* ── 480px REFINEMENTS ── */
  @media (max-width: 480px) {
    .legal-hero, .privacy-hero, .terms-hero {
      padding: 80px 16px 24px;
    }

    .legal-hero h1,
    .legal-hero-title {
      font-size: 28px;
    }

    .legal-content, .privacy-content, .terms-content {
      padding: 24px 16px 64px;
    }

    .legal-content p,
    .legal-section p {
      font-size: 15px;
      line-height: 1.75;
    }
  }

} /* end 768px */
