/* =========================================================
   RAQ.lk Privacy Notice (prototype)
   Builds on ../homepage/styles.css and ../medical-devices/service.css.
   Long-form legal reading layout; no new colours (verified tokens only).
   ========================================================= */

.legal-hero__title { color: #fff; font-weight: 600; font-size: clamp(2.25rem, 1.5rem + 3vw, 3.5rem); line-height: 1.06; letter-spacing: -0.03em; margin-bottom: 20px; }
.legal-meta { font-size: 15.5px; color: var(--on-dark-muted); max-width: 60ch; }
.legal-meta strong { color: #fff; font-weight: 600; }
.legal-status { display: inline-block; margin-top: 16px; padding: 8px 12px; border: 1px solid var(--gold-400); border-radius: var(--radius-sm); color: #fff; font-size: 14.5px; max-width: 60ch; }

/* Reading column with numbered sections */
.legal { padding: 56px 0 72px; }
@media (min-width: 1000px) { .legal { padding: 72px 0 96px; } }
.legal__body { max-width: 74ch; }
.legal__section { padding-top: 8px; margin-top: 40px; border-top: 1px solid var(--line); }
.legal__section:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.legal__section h2 { font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.625rem); font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; margin: 24px 0 14px; scroll-margin-top: calc(var(--header-h) + 16px); }
.legal__section:first-child h2 { margin-top: 0; }
.legal__section h2 .num { color: var(--green-700); margin-right: 8px; }
.legal__section h3 { font-size: 17.5px; font-weight: 600; margin: 22px 0 8px; }
.legal__section p, .legal__section li { font-size: 16.5px; line-height: 1.7; color: var(--ink-900); }
.legal__section p + p { margin-top: 12px; }
.legal__section ul { margin: 10px 0 0; }
.legal__section ul li { position: relative; padding: 4px 0 4px 22px; }
.legal__section ul li::before { content: ""; position: absolute; left: 2px; top: 16px; width: 8px; height: 1.5px; background: var(--green-700); }
.legal__section .note-line { margin-top: 10px; }

.legal-table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 15.5px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); line-height: 1.55; }
.legal-table thead th { font-size: 13.5px; font-weight: 600; color: var(--ink-700); border-bottom: 1px solid var(--ink-900); }
.legal-table tbody th { font-weight: 600; width: 38%; }
.legal-table tr:last-child th, .legal-table tr:last-child td { border-bottom: 0; }
@media (max-width: 699px) {
  .legal-table, .legal-table tbody, .legal-table tr, .legal-table th, .legal-table td { display: block; width: 100%; }
  .legal-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .legal-table tr { padding: 6px 0; border-bottom: 1px solid var(--line); }
  .legal-table tbody th { border-bottom: 0; padding-bottom: 2px; }
  .legal-table td { border-bottom: 0; padding-top: 2px; }
}

.legal-callout { margin-top: 16px; padding: 16px 18px; background: var(--warm-50); border-left: 3px solid var(--gold-400); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.legal-callout p { font-size: 16px; }

.legal-contact { margin: 12px 0 0; border-top: 1px solid var(--ink-900); }
.legal-contact > div { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 480px) { .legal-contact > div { grid-template-columns: 150px 1fr; gap: 16px; } }
.legal-contact dt { font-size: 14px; font-weight: 600; color: var(--ink-500); }
.legal-contact dd { margin: 0; font-size: 16px; overflow-wrap: anywhere; }
.legal-contact .contact-dl__sub { display: block; font-size: 13.5px; color: var(--ink-500); margin-top: 2px; }

/* Long contents list: align the title column to the top on this page */
@media (min-width: 1000px) { #intro .page-hero__grid { align-items: start; } }

/* UX F4 (21 Oct 2026): comfortable line length on legal pages. */
.legal__section p, .legal__section li, .legal-callout p { max-width: 40em; }
