/* ==========================================================================
   The information pages — the FAQs, contact us, the terms of use and the privacy policy
   (resources/views/guest-web/pages/info/). Their hero, their one card, and the admin's text.
   The FAQ list is the shared .faq-accordion (shared.css); the contact form its own component.

   Load order: design.css → shared.css → this file
   ========================================================================== */

/* ─── Hero: the page's icon, title and one line ─────────────── */
.info-hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, #053D55 50%, #085476 100%);
  color: var(--color-surface);
  padding: 44px 0 72px;
  text-align: center;
}
.info-hero-icon {
  width: 56px; height: 56px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--color-accent); color: var(--color-surface);
  font-size: 1.4rem; margin-bottom: 14px;
}
.info-hero h1 { color: var(--color-surface); font-size: clamp(var(--fs-h1), 4vw, var(--fs-hero)); margin: 0 0 8px; }
.info-hero p  { color: rgba(255, 255, 255, .75); font-size: var(--fs-h3); margin: 0 auto; max-width: 620px; }

/* ─── The card the page's content sits in, over the hero's edge ─ */
.info-main { margin-top: -40px; padding-bottom: 64px; position: relative; z-index: 1; }
.info-card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-card); box-shadow: var(--shadow-card);
  padding: 28px;
}
@media (max-width: 575px) { .info-card { padding: 20px 16px; } }

/* ─── The admin's own text (terms, privacy): readable, whatever HTML it carries ─ */
.info-doc { max-width: 860px; margin: 0 auto; }
.info-doc-body { font-size: var(--fs-body); line-height: 1.85; color: var(--color-text-primary); overflow-wrap: anywhere; }
.info-doc-body h1, .info-doc-body h2 { font-size: var(--fs-h2); margin: 28px 0 12px; }
.info-doc-body h3, .info-doc-body h4 { font-size: var(--fs-h3); margin: 22px 0 10px; }
.info-doc-body p { margin: 0 0 14px; }
.info-doc-body ul, .info-doc-body ol { padding-inline-start: 22px; margin: 0 0 14px; }
.info-doc-body li { margin-bottom: 6px; }
.info-doc-body a { color: var(--color-accent); }
.info-doc-body img { max-width: 100%; height: auto; }
.info-doc-body table { width: 100%; max-width: 100%; display: block; overflow-x: auto; border-collapse: collapse; }
.info-doc-body td, .info-doc-body th { border: 1px solid var(--color-border); padding: 8px 10px; }
.info-doc-body > :first-child { margin-top: 0; }

/* The admin pastes the text from a word processor, which brings its own sizes, fonts and colours
   inline (e.g. 33pt titles). The page's own type wins, so every document reads the same; bold,
   lists and heading levels are kept. */
.info-doc-body span, .info-doc-body p, .info-doc-body li, .info-doc-body strong, .info-doc-body b {
  font-size: inherit !important; font-family: inherit !important; color: inherit !important;
  background-color: transparent !important; line-height: inherit !important; white-space: normal !important;
}
.info-doc-body h1, .info-doc-body h2, .info-doc-body h3, .info-doc-body h4 {
  font-family: inherit !important; color: var(--color-text-primary) !important;
}

/* ─── FAQs ──────────────────────────────────────────────────── */
.info-faqs { max-width: 860px; margin: 0 auto; }

/* ─── Contact: the details beside the form ──────────────────── */
.info-contact-head {
  display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 1.05rem;
  padding-bottom: 12px; margin-bottom: 16px; border-bottom: 1px solid var(--color-border);
}
.info-contact-head i { color: var(--color-accent); }
.info-contact-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; color: var(--color-text-primary); text-decoration: none;
}
.info-contact-row + .info-contact-row { border-top: 1px solid var(--color-border); }
a.info-contact-row:hover .info-contact-value { color: var(--color-accent); }
.info-contact-ic {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--color-surface-2); color: var(--color-accent);
}
.info-contact-label { display: block; font-size: var(--fs-xs); color: var(--color-text-secondary); }
.info-contact-value { display: block; font-weight: 600; overflow-wrap: anywhere; }

.info-socials { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.info-social {
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--color-border); color: var(--color-text-primary);
  text-decoration: none; transition: color .15s, border-color .15s;
}
.info-social:hover { color: var(--color-accent); border-color: var(--color-accent); }
.info-socials-label { margin-top: 18px; font-size: var(--fs-sm); font-weight: 600; }

/* ─── The owners' terms: the owner the agreement is with ────── */
.info-party { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--color-border); }
.info-party-h { font-size: var(--fs-h3); margin: 0 0 12px; }
.info-party-tbl { width: 100%; border-collapse: collapse; }
.info-party-tbl th, .info-party-tbl td { padding: 10px 12px; border: 1px solid var(--color-border); text-align: start; }
.info-party-tbl th { width: 40%; font-weight: 600; color: var(--color-text-secondary); background: var(--color-surface-2); }
.info-party-tbl td { font-weight: 600; color: var(--color-accent); overflow-wrap: anywhere; }
