/* The content of the public policy and company pages served by the sitePage
   Cloud Function (functions/lib/sitePagesLayout.js): Terms, Privacy,
   Cancellation and Refund, Shipping and Delivery, Contact, About and Pricing.
   The site header and footer are in css/site-chrome.css, shared with the
   marketing page and the Merchant Navy guide. */
:root {
    --primary: #0066cc; --primary-dark: #004d99; --primary-light: #e6f0ff; --navy: #1a365d;
    --text: #1a202c; --text-2: #4a5568; --line: #e2e8f0; --soft: #f7fafc;
    --warn-bg: #fffbeb; --warn-line: #fcd34d; --warn-text: #92400e;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: var(--text); line-height: 1.65; background: #fff; }
.sp-main a { color: var(--primary-dark); }
.sp-main a:focus-visible, .sp-skip:focus-visible { outline: 3px solid var(--primary-dark); outline-offset: 2px; border-radius: 4px; }
/* Above the fixed site header when focused */
.sp-skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 10px 12px; border-radius: 8px; z-index: 1100; color: var(--primary-dark); }
.sp-skip:focus { left: 8px; }

/* The same 1200px grid as the site header, so the logo and the text share a
   left edge; the text keeps a comfortable reading width inside it */
.sp-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.sp-main > .sp-wrap > * { max-width: 860px; }
/* Tables and detail lists use that width; running text keeps a comfortable line (about 75 characters) */
.sp-main > .sp-wrap p, .sp-main > .sp-wrap li, .sp-main > .sp-wrap blockquote { max-width: 40rem; }

.sp-main { padding: 40px 0 64px; min-height: 60vh; }
.sp-main h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); line-height: 1.2; margin: 0 0 8px; color: var(--navy); }
.sp-main h2 { font-size: 1.25rem; line-height: 1.3; margin: 32px 0 10px; color: var(--navy); }
.sp-main h3, .sp-main h4 { font-size: 1.125rem; margin: 24px 0 8px; }
.sp-main p, .sp-main li { overflow-wrap: anywhere; }
.sp-main ul, .sp-main ol { padding-left: 22px; }
.sp-main li { margin-bottom: 6px; }
.sp-main blockquote { margin: 16px 0; padding: 8px 16px; border-left: 4px solid var(--line); color: var(--text-2); }
.sp-updated { margin: 0 0 20px; color: var(--text-2); font-size: 0.875rem; }
.sp-lead { color: var(--text-2); }
.sp-highlight { padding: 12px 16px; border-radius: 8px; background: var(--primary-light); border: 1px solid #b3d1ff; }
.sp-placeholder { padding: 1px 6px; border-radius: 4px; background: var(--warn-bg); border: 1px dashed var(--warn-line); color: var(--warn-text); }
.sp-extra { margin-top: 20px; padding: 12px 16px; border-radius: 8px; background: var(--soft); }

.sp-details { display: grid; grid-template-columns: minmax(140px, 220px) 1fr; gap: 0; margin: 16px 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.sp-details dt, .sp-details dd { margin: 0; padding: 12px 16px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.sp-details dt { font-weight: 600; background: var(--soft); color: var(--text-2); }
.sp-details dt:last-of-type, .sp-details dd:last-of-type { border-bottom: 0; }

.sp-table-wrap { overflow-x: auto; margin: 12px 0 8px; border: 1px solid var(--line); border-radius: 12px; }
.sp-table { width: 100%; border-collapse: collapse; }
.sp-table caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sp-table th, .sp-table td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.sp-table thead th { background: var(--soft); color: var(--text-2); font-size: 0.875rem; }
.sp-table tbody th { font-weight: 600; }
.sp-table tbody tr:last-child th, .sp-table tbody tr:last-child td { border-bottom: 0; }
.sp-table .sp-price { text-align: right; white-space: nowrap; font-weight: 600; }
.sp-table thead th:last-child { text-align: right; }

@media (max-width: 560px) {
    .sp-wrap { padding: 0 16px; }
    .sp-main { padding: 28px 0 48px; }
    .sp-details { grid-template-columns: 1fr; }
    .sp-details dt { border-bottom: 0; padding-bottom: 2px; }
    .sp-details dd { padding-top: 2px; }
    .sp-details dt:last-of-type { border-bottom: 0; }
    .sp-table th, .sp-table td { padding: 10px 12px; }
}
@media print {
    .sp-skip { display: none; }
}
