/* ============================================
   NURAYA — utility.css
   Legal pages (privacy, terms) and 404 page.
   Loaded on privacy.html, terms.html, 404.html.
   ============================================ */

/* ============================================
   LEGAL PAGE — shared layout
   ============================================ */
.legal-page {
  background: var(--offwhite);
  padding: var(--space-2xl) 0 var(--space-xl);
}

.legal-page__narrow {
  max-width: var(--max-w-narrow);
  margin: 0 auto;
}

.legal-page__eyebrow {
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.75rem;
}

.legal-page__title {
  font-size: var(--fs-h1);
  font-weight: 500;
  color: var(--forest);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.legal-page__meta {
  font-size: var(--fs-caption);
  color: var(--muted);
  margin-bottom: 3rem;
}

/* ============================================
   LEGAL BODY — extends .prose from components.css
   with legal-specific overrides
   ============================================ */

/* Nested ordered lists for sub-sections (1.1, 1.2) */
.legal-body ol ol {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

/* Contact detail blocks within legal text */
.legal-body .legal-contact-block {
  border-left: 1px solid var(--rule);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
}

.legal-body .legal-contact-block p {
  margin-bottom: 0.5em;
}

/* ============================================
   LEGAL CONTACT — end-of-page contact block
   ============================================ */
.legal-contact {
  max-width: var(--max-w-narrow);
  margin: 0 auto;
  padding-top: 3rem;
  border-top: 1px solid var(--rule);
}

.legal-contact__eyebrow {
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.75rem;
}

.legal-contact p {
  font-size: var(--fs-body);
  color: var(--ink);
  line-height: 1.75;
}

/* ============================================
   404 ERROR PAGE
   ============================================ */
.error-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--gutter);
  background: var(--offwhite);
}

.error-page__logo {
  text-decoration: none;
  margin-bottom: 3rem;
}

.error-page__logo-img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.error-page__code {
  font-family: 'Jost', sans-serif;
  font-size: 8rem;
  font-weight: 300;
  color: var(--amber);
  opacity: 0.2;
  line-height: 1;
  margin-bottom: 1rem;
}

.error-page__title {
  font-size: var(--fs-h2);
  font-weight: 500;
  color: var(--forest);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.error-page__text {
  font-size: var(--fs-body);
  font-weight: 400;
  color: var(--muted);
  line-height: 1.65;
  max-width: 480px;
  margin-bottom: 2rem;
}

.error-page__nav {
  list-style: none;
  padding: 0;
  margin: 0 0 3rem;
}

.error-page__nav li {
  margin-bottom: 1rem;
}

.error-page__nav a {
  font-size: var(--fs-body);
  font-weight: 400;
  color: var(--amber);
  text-decoration: none;
  transition: color 0.2s ease;
}

.error-page__nav a:hover {
  text-decoration: underline;
}

.error-page__contact {
  font-size: var(--fs-caption);
  color: var(--muted);
}

.error-page__contact a {
  color: var(--muted);
  text-decoration: underline;
}

.error-page__contact a:hover {
  color: var(--ink);
}

/* ============================================
   RESPONSIVE — UTILITY PAGES
   ============================================ */
@media (max-width: 768px) {
  .legal-page {
    padding: 7rem 0 var(--space-lg);
  }

  .error-page__code {
    font-size: 6rem;
  }
}

@media (max-width: 480px) {
  .error-page__code {
    font-size: 4rem;
  }
}
