/* =========================================================================
   MyDominicanTrip — Legal pages (terms, privacy, refunds, cookies)
   Shared template — duplicate the HTML, swap content, keep these styles.
   ========================================================================= */

.lg-hero {
  background: linear-gradient(180deg, var(--gray-50) 0%, #fff 200px);
  padding: 56px 0 28px;
  border-bottom: 1px solid var(--border);
}
@media (max-width: 720px) { .lg-hero { padding: 36px 0 24px; } }

.lg-bread {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-heading); font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.04em; color: var(--fg-3);
  margin-bottom: 18px;
}
.lg-bread a { color: var(--fg-3); text-decoration: none; }
.lg-bread a:hover { color: var(--mdt-red); }
.lg-bread svg { color: var(--gray-400); }

.lg-eyebrow {
  font-family: var(--font-heading); font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--mdt-red);
  margin-bottom: 12px;
}
.lg-hero h1 {
  font-family: var(--font-heading); font-weight: 800;
  font-size: clamp(30px, 4.4vw, 46px); line-height: 1.05;
  letter-spacing: -0.02em; color: var(--mdt-navy);
  max-width: 22ch; text-wrap: balance;
}
.lg-hero h1 em { font-family: var(--font-accent); font-style: italic; font-weight: 600; }
.lg-hero p.lead {
  margin-top: 14px; max-width: 660px;
  font-size: 17px; color: var(--fg-2); line-height: 1.55;
}

/* Meta strip below H1 */
.lg-meta {
  display: flex; gap: 14px; flex-wrap: wrap;
  margin-top: 22px;
  font-size: 13px; color: var(--fg-3);
}
.lg-meta span {
  display: inline-flex; align-items: center; gap: 5px;
}
.lg-meta svg { color: var(--mdt-red); }
.lg-meta strong { color: var(--mdt-navy); font-weight: 600; }

/* Page-jump pills (other legal pages) */
.lg-other {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-top: 18px;
}
.lg-other a {
  padding: 6px 14px; border-radius: 999px;
  background: #fff; border: 1.5px solid var(--border);
  font-family: var(--font-heading); font-weight: 600; font-size: 12.5px;
  color: var(--fg-2); text-decoration: none;
  transition: all var(--t-base) var(--ease);
}
.lg-other a:hover { border-color: var(--mdt-navy); color: var(--mdt-navy); }
.lg-other a.active { background: var(--mdt-navy); color: #fff; border-color: var(--mdt-navy); }

/* ============ LAYOUT ============ */
.lg-layout {
  display: grid; gap: 48px;
  grid-template-columns: 1fr;
  padding: 40px 0 80px;
}
@media (min-width: 1000px) {
  .lg-layout { grid-template-columns: 260px minmax(0, 1fr); gap: 56px; align-items: start; }
}

/* ============ TABLE OF CONTENTS ============ */
.lg-toc {
  background: var(--gray-50); border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 20px;
}
@media (min-width: 1000px) { .lg-toc { position: sticky; top: 100px; } }
.lg-toc h6 {
  font-family: var(--font-heading); font-size: 11px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-3);
  margin-bottom: 14px;
}
.lg-toc ol {
  list-style: none; padding: 0; counter-reset: toc;
  display: grid; gap: 6px;
}
.lg-toc ol li { counter-increment: toc; }
.lg-toc ol a {
  display: flex; gap: 10px; align-items: baseline;
  padding: 7px 10px; border-radius: 6px;
  font-size: 13.5px; color: var(--fg-2); text-decoration: none;
  border-left: 2px solid var(--gray-200);
  line-height: 1.4;
  transition: all var(--t-base) var(--ease);
}
.lg-toc ol a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--font-mono); font-size: 11px;
  color: var(--fg-4); font-weight: 600;
}
.lg-toc ol a:hover,
.lg-toc ol a.active {
  background: #fff; color: var(--mdt-red);
  border-left-color: var(--mdt-red); font-weight: 600;
}

.lg-toc-help {
  margin-top: 16px; padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 12.5px; color: var(--fg-3); line-height: 1.55;
}
.lg-toc-help strong { display: block; color: var(--mdt-navy); font-family: var(--font-heading); margin-bottom: 4px; }
.lg-toc-help a { color: var(--mdt-red); text-decoration: none; font-weight: 600; }
.lg-toc-help a:hover { text-decoration: underline; }

/* ============ ARTICLE BODY ============ */
.lg-article {
  max-width: 780px;
}
.lg-article > section {
  margin-bottom: 40px; scroll-margin-top: 100px;
}
.lg-article h2 {
  font-family: var(--font-heading); font-weight: 800;
  font-size: clamp(22px, 2.6vw, 28px); line-height: 1.15;
  letter-spacing: -0.015em; color: var(--mdt-navy);
  margin-bottom: 16px;
  display: flex; align-items: baseline; gap: 14px;
}
.lg-article h2 .num {
  font-family: var(--font-mono); font-size: 14px; color: var(--mdt-red);
  font-weight: 600; letter-spacing: 0.02em;
}
.lg-article h3 {
  font-family: var(--font-heading); font-weight: 700;
  font-size: 17.5px; color: var(--mdt-navy);
  margin: 22px 0 8px;
}
.lg-article p {
  font-family: var(--font-body); font-size: 16px; line-height: 1.7;
  color: var(--fg-2);
  margin-bottom: 14px;
  text-wrap: pretty;
}
.lg-article p > strong { color: var(--mdt-navy); }
.lg-article a {
  color: var(--mdt-red); text-decoration: underline; text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}
.lg-article a:hover { color: var(--red-600); }
.lg-article ul, .lg-article ol {
  margin: 0 0 16px 22px;
}
.lg-article li {
  font-size: 15.5px; line-height: 1.65; color: var(--fg-2);
  margin-bottom: 6px;
}
.lg-article li::marker { color: var(--mdt-red); }

/* Definition style */
.lg-article .def {
  display: grid; grid-template-columns: 140px 1fr; gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 14.5px; line-height: 1.55;
}
.lg-article .def:last-of-type { border-bottom: none; }
.lg-article .def dt {
  font-family: var(--font-heading); font-weight: 700;
  color: var(--mdt-navy);
}
.lg-article .def dd { color: var(--fg-2); margin: 0; }
@media (max-width: 600px) {
  .lg-article .def { grid-template-columns: 1fr; gap: 4px; }
}

/* Tables */
.lg-article table {
  width: 100%; border-collapse: collapse;
  margin: 18px 0 22px;
  font-size: 14px;
  border: 1px solid var(--border); border-radius: var(--r-sm); overflow: hidden;
}
.lg-article table th, .lg-article table td {
  padding: 12px 14px; text-align: left;
  border-bottom: 1px solid var(--gray-100);
}
.lg-article table th {
  background: var(--gray-50);
  font-family: var(--font-heading); font-weight: 700; font-size: 12.5px;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--mdt-navy);
}
.lg-article table tr:last-child td { border-bottom: none; }
.lg-article table td strong { color: var(--mdt-navy); }

/* Callout (important blocks) */
.lg-callout {
  margin: 20px 0;
  padding: 18px 22px;
  border-radius: var(--r-md);
  display: grid; grid-template-columns: 40px 1fr; gap: 14px;
  align-items: flex-start;
}
.lg-callout.warning { background: var(--yellow-50); border: 1px solid var(--yellow-200); }
.lg-callout.info { background: var(--aqua-50); border: 1px solid var(--aqua-200); }
.lg-callout.danger { background: var(--red-50); border: 1px solid var(--red-100); }
.lg-callout-ic {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.lg-callout.warning .lg-callout-ic { background: var(--yellow-200); color: var(--yellow-900); }
.lg-callout.info .lg-callout-ic { background: var(--aqua-200); color: var(--aqua-700); }
.lg-callout.danger .lg-callout-ic { background: var(--red-100); color: var(--mdt-red); }
.lg-callout h4 {
  font-family: var(--font-heading); font-weight: 800; font-size: 15px;
  color: var(--mdt-navy); margin-bottom: 4px;
}
.lg-callout p { font-size: 14px !important; margin-bottom: 0 !important; line-height: 1.55 !important; }

/* Contact / footer of article */
.lg-contact {
  margin-top: 48px;
  padding: 28px;
  background: var(--mdt-navy); color: #fff;
  border-radius: var(--r-lg);
}
.lg-contact h3 {
  font-family: var(--font-heading); font-weight: 800;
  font-size: 22px; color: #fff; margin-bottom: 6px;
}
.lg-contact h3 em { font-family: var(--font-accent); font-style: italic; font-weight: 600; }
.lg-contact p { color: rgba(255,255,255,0.72); font-size: 14.5px; line-height: 1.55; margin-bottom: 20px; }
.lg-contact-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.lg-contact-grid a {
  display: flex; gap: 12px; align-items: center;
  padding: 14px 16px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-sm);
  text-decoration: none; color: #fff;
  min-width: 0;
  transition: all var(--t-base) var(--ease);
}
.lg-contact-grid a:hover { background: rgba(255,255,255,0.12); border-color: var(--mdt-red); }
.lg-contact-grid svg { color: var(--red-300); flex-shrink: 0; }
.lg-contact-grid > a > div { min-width: 0; flex: 1; overflow: hidden; }
.lg-contact-grid .l {
  font-family: var(--font-heading); font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.6);
}
.lg-contact-grid .v {
  font-family: var(--font-heading); font-weight: 700; font-size: 13.5px;
  color: #fff;
  word-break: break-word;
  overflow-wrap: anywhere;
  line-height: 1.3;
}

/* Print-friendly */
@media print {
  .nav, .footer, .mobile-bar, .lg-toc, .lg-other, .lg-contact { display: none !important; }
  .lg-layout { grid-template-columns: 1fr !important; padding: 0; }
  .lg-article { max-width: 100% !important; }
  body { background: #fff !important; }
}
