/* =============================================================
   legal.css — Beachside Bliss
   Styles for Terms & Conditions, Privacy Policy,
   Cancellation Policy & House Rules pages.
   Enqueued conditionally via functions.php on legal slugs.
   ============================================================= */

/* ── Page wrapper ─────────────────────────────────────────── */
.bb-legal-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px 96px;
}

@media (min-width: 640px) {
  .bb-legal-page {
    padding: 0 32px 96px;
  }
}

/* ── Meta / intro line ───────────────────────────────────── */
.bb-legal-meta {
  font-size: 0.8125rem;
  color: #94a3b8;
  line-height: 1.65;
  margin-bottom: 2.5rem;
}

.bb-legal-meta a {
  color: #64748b;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Section block ───────────────────────────────────────── */
.bb-legal-section {
  margin-top: 2.75rem;
}

/* ── Headings ─────────────────────────────────────────────── */
.bb-legal-h2 {
  font-family: var(--font-body, 'Inter', system-ui, sans-serif);
  font-size: 1.0625rem;
  font-weight: 600;
  color: #0f172a;
  letter-spacing: -0.012em;
  margin: 0 0 0.875rem;
}

.bb-legal-subheading {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #334155;
  margin: 1.375rem 0 0.375rem;
}

/* ── Body text ────────────────────────────────────────────── */
.bb-legal-body {
  color: #475569;
  font-size: 0.9375rem;
  line-height: 1.8;
}

.bb-legal-body p {
  margin: 0;
}

.bb-legal-body p + p,
.bb-legal-body p + div,
.bb-legal-body div + p {
  margin-top: 0.875rem;
}

.bb-legal-body a {
  color: #475569;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.bb-legal-body a:hover {
  color: #0f172a;
}

/* ── Divider ──────────────────────────────────────────────── */
.bb-legal-hr {
  border: none;
  border-top: 1px solid #e2e8f0;
  margin: 2.75rem 0;
}

/* ── Bullet list ──────────────────────────────────────────── */
.bb-legal-list {
  list-style: disc;
  padding-left: 1.375rem;
  margin: 0.625rem 0 0;
  color: #475569;
  font-size: 0.9375rem;
  line-height: 1.8;
}

.bb-legal-list li + li {
  margin-top: 0.3125rem;
}

.bb-legal-list a {
  color: #475569;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Refund table ─────────────────────────────────────────── */
.bb-legal-table-wrap {
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin: 1rem 0;
  -webkit-overflow-scrolling: touch;
}

.bb-legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  white-space: nowrap;
}

@media (max-width: 639px) {
  .bb-legal-table {
    font-size: 0.8125rem;
  }
}

.bb-legal-table thead {
  background: #f8fafc;
}

.bb-legal-table th {
  padding: 11px 16px;
  text-align: left;
  font-weight: 600;
  color: #334155;
  border-bottom: 1px solid #e2e8f0;
}

.bb-legal-table td {
  padding: 11px 16px;
  color: #475569;
  border-top: 1px solid #f1f5f9;
  white-space: normal;
}

.bb-legal-table td.refund-yes {
  color: #15803d;
  font-weight: 500;
  white-space: nowrap;
}

.bb-legal-table td.refund-no {
  color: #b91c1c;
  font-weight: 500;
  white-space: nowrap;
}

.bb-legal-table-note {
  font-size: 0.8125rem;
  color: #94a3b8;
  margin-top: 0.625rem;
}

/* ── House-rules list ─────────────────────────────────────── */
.bb-legal-rules {
  list-style: none;
  padding: 0;
  margin: 0.875rem 0 0;
}

.bb-legal-rules li {
  display: flex;
  gap: 0.75rem;
  padding: 0.625rem 0;
  color: #475569;
  font-size: 0.9375rem;
  line-height: 1.65;
  border-bottom: 1px solid #f1f5f9;
}

.bb-legal-rules li:last-child {
  border-bottom: none;
}

.bb-legal-rules .rule-dash {
  color: #cbd5e1;
  flex-shrink: 0;
  padding-top: 2px;
  font-weight: 300;
}

/* ── Callout / note box ───────────────────────────────────── */
.bb-legal-note {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 0.875rem;
  color: #475569;
  line-height: 1.65;
  margin-top: 1.125rem;
}

.bb-legal-note a {
  color: #475569;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Acknowledgment block (T&C footer) ────────────────────── */
.bb-legal-ack {
  margin-top: 3rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px 24px;
  color: #475569;
  font-size: 0.9375rem;
  line-height: 1.8;
}

.bb-legal-ack strong {
  color: #0f172a;
}

/* ── Closing card ─────────────────────────────────────────── */
.bb-legal-closing {
  margin-top: 3rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px 28px;
}

.bb-legal-closing p {
  color: #475569;
  font-size: 0.9375rem;
  line-height: 1.8;
  margin: 0;
}

.bb-legal-closing p + p {
  margin-top: 0.625rem;
}

.bb-legal-closing .closing-contact {
  margin-top: 0.875rem;
  font-size: 0.8125rem;
  color: #94a3b8;
}

.bb-legal-closing a {
  color: #64748b;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.bb-legal-closing a:hover {
  color: #0f172a;
}
