@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
  --r-teal: #0D7A6B;
  --r-teal-pressed: #0A5E55;
  --r-teal-faint: #E6F5F2;
  --r-text-primary: #111827;
  --r-text-soft: #374151;
  --r-text-muted: #6B7280;
  --r-border: #E5E7EB;
  --r-hairline: #EDEFF2;
  --r-bg: #F9FAFB;
  --r-card: #FFFFFF;
  --r-warning: #991B1B;
  --r-warning-bg: #FEF2F2;
  --r-society: #4338CA;
  --r-industry: #92400E;
  --r-regulatory: #991B1B;
  --r-surgical: #1E3A5F;
  --r-cme: #1D4ED8;
  --r-provincial: #5B21B6;
  --r-literature: #15803D;
  --shadow-card: 0 12px 30px -24px rgba(17, 24, 39, 0.55);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--r-text-primary);
  background: var(--r-bg);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--r-teal); text-underline-offset: 3px; }
a:hover { color: var(--r-teal-pressed); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--r-teal); outline-offset: 3px; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  color: #fff;
  background: var(--r-teal);
  font-weight: 700;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--r-border);
  background: rgba(249, 250, 251, 0.92);
  backdrop-filter: blur(14px);
}

.header-inner,
.page-shell,
.footer-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.header-inner {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-wordmark {
  display: block;
  width: auto;
  height: 29px;
}

.brand-mark {
  width: 29px;
  height: 29px;
  position: relative;
  flex: none;
  border-radius: 50%;
  background: conic-gradient(
    var(--r-society) 0 16%,
    transparent 16% 17%,
    var(--r-industry) 17% 33%,
    transparent 33% 34%,
    var(--r-regulatory) 34% 50%,
    transparent 50% 51%,
    var(--r-surgical) 51% 67%,
    transparent 67% 68%,
    var(--r-cme) 68% 84%,
    transparent 84% 85%,
    var(--r-literature) 85% 100%
  );
}
.brand-mark::after {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: var(--r-bg);
}

.header-nav { display: flex; align-items: center; gap: 18px; }
.header-nav a {
  color: var(--r-text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}
.header-nav a:hover,
.header-nav a[aria-current='page'] { color: var(--r-teal); }

.legal-hero {
  padding: 78px 0 52px;
  border-bottom: 1px solid var(--r-hairline);
  background:
    radial-gradient(circle at 86% 12%, rgba(13, 122, 107, 0.10), transparent 24%),
    var(--r-bg);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--r-teal);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--r-text-primary);
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(36px, 6vw, 54px);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.hero-summary {
  max-width: 700px;
  margin: 20px 0 0;
  color: var(--r-text-soft);
  font-size: 17px;
  line-height: 1.7;
}

.updated {
  display: inline-flex;
  margin-top: 22px;
  padding: 7px 11px;
  border: 1px solid rgba(13, 122, 107, 0.22);
  border-radius: 999px;
  color: var(--r-teal);
  background: var(--r-teal-faint);
  font-size: 12px;
  font-weight: 700;
}

.page-shell {
  display: grid;
  grid-template-columns: 230px minmax(0, 760px);
  justify-content: center;
  gap: 54px;
  padding-top: 56px;
  padding-bottom: 88px;
}

.toc {
  position: sticky;
  top: 96px;
  align-self: start;
  padding: 18px;
  border: 1px solid var(--r-border);
  border-radius: 12px;
  background: var(--r-card);
  box-shadow: var(--shadow-card);
}
.toc strong {
  display: block;
  margin-bottom: 10px;
  color: var(--r-text-primary);
  font-size: 12px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}
.toc a {
  display: block;
  padding: 6px 0;
  color: var(--r-text-muted);
  text-decoration: none;
  font-size: 13px;
  line-height: 1.35;
}
.toc a:hover { color: var(--r-teal); }

.legal-content { min-width: 0; }
.legal-content section {
  scroll-margin-top: 96px;
  padding: 0 0 38px;
  margin: 0 0 38px;
  border-bottom: 1px solid var(--r-hairline);
}
.legal-content section:last-child { border-bottom: 0; margin-bottom: 0; }
.legal-content h2 {
  margin: 0 0 16px;
  font-size: 27px;
  line-height: 1.25;
  font-weight: 600;
}
.legal-content h3 {
  margin: 26px 0 9px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
}
.legal-content p,
.legal-content li {
  color: var(--r-text-soft);
  font-size: 15px;
  line-height: 1.75;
}
.legal-content p { margin: 0 0 14px; }
.legal-content ul,
.legal-content ol { margin: 10px 0 16px; padding-left: 24px; }
.legal-content li + li { margin-top: 8px; }

.plain-language,
.notice,
.warning {
  margin: 20px 0;
  padding: 18px 20px;
  border-radius: 10px;
}
.plain-language {
  border-left: 4px solid var(--r-teal);
  background: var(--r-teal-faint);
}
.notice {
  border: 1px solid var(--r-border);
  background: var(--r-card);
  box-shadow: var(--shadow-card);
}
.warning {
  border-left: 4px solid var(--r-warning);
  background: var(--r-warning-bg);
}
.plain-language strong,
.notice strong,
.warning strong { display: block; margin-bottom: 5px; color: var(--r-text-primary); }
.plain-language p,
.notice p,
.warning p { margin: 0; font-size: 14px; }

.data-grid,
.support-grid,
.principles-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}
.info-card {
  padding: 18px;
  border: 1px solid var(--r-border);
  border-radius: 10px;
  background: var(--r-card);
  box-shadow: var(--shadow-card);
}
.info-card h3 { margin: 0 0 7px; color: var(--r-text-primary); }
.info-card p { margin: 0; font-size: 14px; line-height: 1.6; }
.info-card .card-label {
  display: block;
  margin-bottom: 7px;
  color: var(--r-teal);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.contact-card {
  padding: 24px;
  border: 1px solid rgba(13, 122, 107, 0.24);
  border-radius: 12px;
  background: linear-gradient(135deg, var(--r-card), var(--r-teal-faint));
}
.contact-card h2 { margin-bottom: 10px; }
.contact-card p { max-width: 620px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.button-primary,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.button-primary { color: #fff; background: var(--r-teal); }
.button-primary:hover { color: #fff; background: var(--r-teal-pressed); }
.button-secondary { border: 1px solid var(--r-teal); color: var(--r-teal); background: transparent; }

.site-footer { border-top: 1px solid var(--r-border); background: var(--r-card); }
.footer-inner { padding-top: 28px; padding-bottom: 32px; }
.footer-top { display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-links a { color: var(--r-text-muted); text-decoration: none; font-size: 12px; font-weight: 700; }
.footer-links a:hover { color: var(--r-teal); }
.footer-note {
  max-width: 800px;
  margin: 18px 0 0;
  color: var(--r-text-muted);
  font-size: 12px;
  line-height: 1.6;
}

@media (max-width: 820px) {
  .header-inner, .page-shell, .footer-inner { width: min(100% - 32px, 760px); }
  .header-nav a:not(.keep-mobile) { display: none; }
  .legal-hero { padding: 58px 0 40px; }
  .page-shell { grid-template-columns: 1fr; gap: 26px; padding-top: 34px; }
  .toc { position: static; }
  .toc nav { columns: 2; column-gap: 24px; }
}

@media (max-width: 560px) {
  .data-grid, .support-grid, .principles-grid { grid-template-columns: 1fr; }
  .toc nav { columns: 1; }
  .footer-top { align-items: flex-start; flex-direction: column; }
  .legal-content h2 { font-size: 24px; }
  .hero-summary { font-size: 15px; }
}

@media print {
  .site-header, .toc, .site-footer, .contact-actions, .skip-link { display: none !important; }
  body { background: #fff; }
  .legal-hero { padding: 24px 0; background: #fff; }
  .page-shell { display: block; width: 100%; padding: 24px 0; }
  .legal-content section { break-inside: avoid; }
}
