/* Handmade stylesheet for the four static legal pages (/terms, /privacy,
   /refund, /contact). These are a plain HTML copy of the frontend's
   (legal) route group — there is no Tailwind build on offer.feedbay.io,
   so the look is reproduced by hand instead of generated. Keep this file
   in sync by eye whenever frontend/src/app/(legal)/**/page.tsx changes. */

* {
  box-sizing: border-box;
}

body.legal-page {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  color: #111827;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Header: logo left, "Pricing" (→ /home) right — mirrors LegalLayout. */
.legal-header {
  border-bottom: 1px solid #f3f4f6;
}

.legal-header-inner {
  max-width: 768px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.legal-logo {
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  text-decoration: none;
}

.legal-pricing-link {
  font-size: 14px;
  font-weight: 500;
  color: hsl(217, 91%, 60%);
  text-decoration: none;
}

.legal-pricing-link:hover {
  text-decoration: underline;
}

.legal-main {
  width: 100%;
  max-width: 768px;
  margin: 0 auto;
  flex: 1;
  padding: 48px 24px;
}

.legal-article {
  display: flex;
  flex-direction: column;
  gap: 32px;
  font-size: 15px;
  line-height: 1.625;
  color: #374151;
}

.legal-article-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-article h1 {
  margin: 0;
  font-size: 30px;
  font-weight: 600;
  color: #111827;
}

.legal-updated,
.legal-article-header p {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
}

.legal-article section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.legal-article h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #111827;
}

.legal-article h3 {
  margin: 0;
  font-weight: 500;
  color: #111827;
}

.legal-article p {
  margin: 0;
}

.legal-article ul {
  list-style: disc;
  margin: 0;
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.legal-article a {
  color: hsl(217, 91%, 60%);
  text-decoration: none;
}

.legal-article a:hover {
  text-decoration: underline;
}

/* Rounded bordered box — the refund guarantee callout. */
.legal-box {
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  padding: 20px;
}

.legal-note {
  font-size: 14px;
  color: #6b7280;
}

/* 2-col grid from 640px up — the contact page's email/phone cards. */
.legal-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .legal-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.legal-card {
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  padding: 20px;
}

.legal-card-label {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
}

.legal-card-value {
  display: block;
  margin-top: 4px;
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  text-decoration: none;
}

/* Email card only — the phone card keeps the default dark text, matching
   text-primary vs. text-gray-900 on the two ContactPage cards. */
.legal-card-value--accent {
  color: hsl(217, 91%, 60%);
}

.legal-card-hint {
  margin: 8px 0 0;
  font-size: 14px;
  color: #6b7280;
}

/* Footer: same four local links, address, mailto, tel — mirrors LegalLayout. */
.legal-footer {
  border-top: 1px solid #f3f4f6;
}

.legal-footer-inner {
  max-width: 768px;
  margin: 0 auto;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 14px;
  color: #6b7280;
}

.legal-footer-nav {
  display: flex;
  flex-wrap: wrap;
  column-gap: 24px;
  row-gap: 8px;
}

.legal-footer-nav a {
  color: #6b7280;
  text-decoration: none;
}

.legal-footer-nav a:hover {
  color: #111827;
}

.legal-address {
  font-style: normal;
  line-height: 1.625;
}

.legal-address a {
  color: inherit;
  text-decoration: none;
}

.legal-address a:hover {
  color: #111827;
}
