﻿/* === OceanView Design System === */
:root {
  --color-primary: #0a2540;
  --color-primary-light: #1e4a6b;
  --color-primary-lighter: #2d5f82;
  --color-accent: #c2852a;
  --color-accent-light: #e8b84b;
  --color-accent-dark: #9e6a1a;
  --color-bg: #fafbfc;
  --color-bg-alt: #f0f2f5;
  --color-bg-card: #ffffff;
  --color-text: #1a1a2e;
  --color-text-light: #5a5a6e;
  --color-text-muted: #7a7a8e;
  --color-border: #dee2e6;
  --color-border-light: #eef0f2;
  --color-success: #2d6a4f;
  --color-warning: #b8860b;
  --color-error: #a71d2a;
  --color-link: #1e4a6b;
  --color-link-hover: #0a2540;

  --font-sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Cascadia Code', Consolas, monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;

  --leading-tight: 1.25;
  --leading-normal: 1.6;
  --leading-relaxed: 1.75;

  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  --radius: 6px;
  --radius-lg: 10px;
  --radius-sm: 4px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-lg: 0 4px 16px rgba(0,0,0,0.10);

  --max-width: 1100px;
  --max-width-narrow: 720px;
  --header-height: 64px;
}

/* === Reset === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-link);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

a:hover {
  color: var(--color-link-hover);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

ul, ol {
  padding-left: 1.5em;
}

blockquote {
  border-left: 3px solid var(--color-accent);
  padding: var(--space-md) var(--space-lg);
  margin: var(--space-lg) 0;
  background: var(--color-bg-alt);
  color: var(--color-text-light);
  font-style: italic;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-lg) 0;
  font-size: var(--text-sm);
}

th, td {
  padding: var(--space-sm) var(--space-md);
  text-align: left;
  border: 1px solid var(--color-border);
}

th {
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
}

tr:nth-child(even) td {
  background: var(--color-bg-alt);
}

/* === Skip Link === */
.skip-link {
  position: absolute;
  top: -100%;
  left: 8px;
  background: var(--color-primary);
  color: #fff;
  padding: 8px 16px;
  z-index: 10002;
  border-radius: 0 0 var(--radius) var(--radius);
}

.skip-link:focus {
  top: 0;
}

/* === Header === */
.site-header {
  background: var(--color-primary);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.site-header .header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.site-brand {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  text-decoration: none;
  color: #fff;
}

.site-brand:hover {
  color: var(--color-accent-light);
}

.site-brand img {
  height: 36px;
  width: auto;
}

.site-brand span {
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.site-nav a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.site-nav a:hover,
.site-nav a.active {
  color: #fff;
  border-bottom-color: var(--color-accent-light);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px 8px;
}

/* === Main === */
.site-main {
  flex: 1;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-lg);
}

.container-narrow {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-lg);
}

/* === Hero (Homepage) === */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: #fff;
  padding: var(--space-3xl) var(--space-lg);
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-3xl);
  align-items: center;
}

.hero-content h1 {
  font-size: var(--text-4xl);
  line-height: var(--leading-tight);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-lg);
}

.hero-content h1 span {
  color: var(--color-accent-light);
}

.hero-content .hero-desc {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  opacity: 0.9;
  margin-bottom: var(--space-xl);
  max-width: 560px;
}

.hero-content .hero-cta {
  display: inline-flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 12px 24px;
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
  line-height: 1.4;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.btn-primary:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
  color: #fff;
}

.btn-secondary {
  background: var(--color-bg);
  color: var(--color-primary);
  border-color: var(--color-border);
}

.btn-secondary:hover {
  background: var(--color-bg-alt);
  border-color: var(--color-primary);
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.stat-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
}

.stat-number {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--color-accent-light);
  display: block;
}

.stat-label {
  font-size: var(--text-sm);
  opacity: 0.85;
  margin-top: var(--space-xs);
}

/* === Section Styles === */
.section {
  padding: var(--space-3xl) 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-header h2 {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.section-header p {
  font-size: var(--text-lg);
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* === Card Grid === */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
}

.card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card-icon {
  font-size: 2rem;
  padding: var(--space-lg) var(--space-lg) 0;
  display: block;
}

.card-body {
  padding: var(--space-lg);
}

.card-body h3 {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.card-body h3 a {
  color: inherit;
  text-decoration: none;
}

.card-body h3 a:hover {
  color: var(--color-accent);
}

.card-body p {
  color: var(--color-text-light);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

/* === Staggered Card Grid (anti-template variant) === */
.card-grid-staggered {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.card-grid-staggered .card:nth-child(2) {
  margin-top: 2rem;
}

.card-grid-staggered .card:nth-child(3) {
  margin-top: 1rem;
}

/* === Article Card === */
.article-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.25s;
}

.article-card:hover {
  box-shadow: var(--shadow-lg);
}

.article-card-image {
  height: 180px;
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary-lighter) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 2.5rem;
}

.article-card-body {
  padding: var(--space-lg);
}

.article-card-body .article-meta {
  display: flex;
  gap: var(--space-md);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}

.article-card-body h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
  line-height: var(--leading-tight);
}

.article-card-body h3 a {
  color: inherit;
  text-decoration: none;
}

.article-card-body h3 a:hover {
  color: var(--color-accent);
}

.article-card-body p {
  color: var(--color-text-light);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

.article-card-body .read-more {
  display: inline-block;
  margin-top: var(--space-md);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-accent);
  text-decoration: none;
}

.article-card-body .read-more:hover {
  text-decoration: underline;
}

/* === FAQ Section === */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-md);
  background: var(--color-bg-card);
  overflow: hidden;
}

.faq-item summary {
  padding: var(--space-lg);
  font-weight: 600;
  font-size: var(--text-base);
  cursor: pointer;
  color: var(--color-primary);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--color-accent);
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item .faq-answer {
  padding: 0 var(--space-lg) var(--space-lg);
  color: var(--color-text-light);
  line-height: var(--leading-relaxed);
  font-size: var(--text-sm);
}

/* === Breadcrumbs === */
.breadcrumbs {
  padding: var(--space-md) 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.breadcrumbs a {
  color: var(--color-text-muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--color-primary);
}

.breadcrumbs .sep {
  margin: 0 var(--space-sm);
  color: var(--color-border);
}

/* === Article Page === */
.article-header {
  padding: var(--space-3xl) 0 var(--space-xl);
  border-bottom: 1px solid var(--color-border-light);
  margin-bottom: var(--space-2xl);
}

.article-header .article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
}

.article-header .article-meta-bar span {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.article-header h1 {
  font-size: var(--text-3xl);
  font-weight: 800;
  line-height: var(--leading-tight);
  color: var(--color-primary);
  margin-bottom: var(--space-lg);
}

.article-header .article-summary {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--color-text-light);
  max-width: 640px;
}

.article-body {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text);
}

.article-body h2 {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-primary);
  margin: var(--space-2xl) 0 var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-border-light);
}

.article-body h3 {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-primary-light);
  margin: var(--space-xl) 0 var(--space-sm);
}

.article-body p {
  margin-bottom: var(--space-md);
}

.article-body ul,
.article-body ol {
  margin-bottom: var(--space-md);
}

.article-body li {
  margin-bottom: var(--space-xs);
}

.article-body .callout {
  background: var(--color-bg-alt);
  border-left: 3px solid var(--color-accent);
  padding: var(--space-lg);
  margin: var(--space-xl) 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.article-body .callout strong {
  color: var(--color-primary);
}

.article-footer {
  margin-top: var(--space-3xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--color-border-light);
}

.author-box {
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-primary-light);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--text-xl);
  flex-shrink: 0;
}

.author-info h4 {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
}

.author-info p {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  line-height: var(--leading-relaxed);
  margin-bottom: 0;
}

.references {
  margin-bottom: var(--space-xl);
}

.references h4 {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

.references ul {
  list-style: none;
  padding-left: 0;
}

.references li {
  margin-bottom: var(--space-xs);
  font-size: var(--text-sm);
}

.references li a {
  word-break: break-all;
}

.related-reading h4 {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
}

.related-item {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius);
  padding: var(--space-md);
}

.related-item a {
  font-weight: 600;
  font-size: var(--text-sm);
  text-decoration: none;
}

.related-item a:hover {
  text-decoration: underline;
}

.related-item .related-type {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  display: block;
  margin-bottom: var(--space-xs);
}

/* === Article TOC === */
.toc {
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.toc h4 {
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}

.toc ol {
  list-style: decimal;
  padding-left: 1.25em;
}

.toc li {
  margin-bottom: var(--space-xs);
  font-size: var(--text-sm);
}

.toc a {
  text-decoration: none;
}

.toc a:hover {
  text-decoration: underline;
}

/* === Page Header (non-home) === */
.page-header {
  background: var(--color-primary);
  color: #fff;
  padding: var(--space-2xl) var(--space-lg);
  text-align: center;
}

.page-header h1 {
  font-size: var(--text-3xl);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.page-header p {
  font-size: var(--text-lg);
  opacity: 0.85;
  margin-top: var(--space-sm);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* === Contact Page === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
}

.contact-info h2,
.contact-form-wrap h2 {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-lg);
}

.contact-detail {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.contact-detail-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  width: 32px;
  text-align: center;
}

.contact-detail-body h4 {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 2px;
}

.contact-detail-body p,
.contact-detail-body a {
  font-size: var(--text-sm);
  color: var(--color-text-light);
}

.safety-notice {
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-top: var(--space-xl);
  font-size: var(--text-sm);
  color: var(--color-text-light);
  line-height: var(--leading-relaxed);
}

.safety-notice strong {
  color: var(--color-primary);
  display: block;
  margin-bottom: var(--space-xs);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-xs);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-bg-card);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(10,37,64,0.1);
  outline: none;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group .form-hint {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-xs);
}

.form-group .form-error {
  font-size: var(--text-xs);
  color: var(--color-error);
  margin-top: var(--space-xs);
}

/* === About Page === */
.about-section {
  margin-bottom: var(--space-2xl);
}

.about-section h2 {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

.about-section h3 {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-primary-light);
  margin-bottom: var(--space-sm);
}

.about-section p {
  margin-bottom: var(--space-md);
  color: var(--color-text-light);
  line-height: var(--leading-relaxed);
}

.about-section ul {
  margin-bottom: var(--space-md);
}

.about-section li {
  color: var(--color-text-light);
  margin-bottom: var(--space-xs);
  line-height: var(--leading-relaxed);
}

.methodology-box {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-top: var(--space-xl);
}

.methodology-box h3 {
  color: var(--color-primary);
  font-size: var(--text-xl);
  margin-bottom: var(--space-md);
}

/* === Disclaimer Banner === */
.disclaimer-banner {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-warning);
  border-radius: var(--radius);
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-2xl);
  font-size: var(--text-sm);
  color: var(--color-text-light);
  line-height: var(--leading-relaxed);
}

.disclaimer-banner strong {
  color: var(--color-warning);
}

/* === Footer === */
.site-footer {
  background: var(--color-primary);
  color: rgba(255,255,255,0.75);
  padding: var(--space-3xl) var(--space-lg) var(--space-xl);
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-about h3 {
  color: #fff;
  font-size: var(--text-lg);
  margin-bottom: var(--space-md);
}

.footer-about p {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

.footer-links h4 {
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
}

.footer-links ul {
  list-style: none;
  padding-left: 0;
}

.footer-links li {
  margin-bottom: var(--space-sm);
}

.footer-links a {
  color: rgba(255,255,255,0.65);
  font-size: var(--text-sm);
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-lg);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  font-size: var(--text-xs);
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: #fff;
}

/* === 404 Page === */
.error-page {
  text-align: center;
  padding: var(--space-3xl) var(--space-lg);
  max-width: 520px;
  margin: 0 auto;
}

.error-code {
  font-size: 6rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: var(--space-md);
}

.error-page h2 {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

.error-page p {
  color: var(--color-text-light);
  margin-bottom: var(--space-xl);
  line-height: var(--leading-relaxed);
}

.error-links {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* === Legal Pages === */
.legal-content h2 {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-primary);
  margin: var(--space-2xl) 0 var(--space-md);
}

.legal-content h3 {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-primary-light);
  margin: var(--space-xl) 0 var(--space-sm);
}

.legal-content p {
  margin-bottom: var(--space-md);
  color: var(--color-text-light);
  line-height: var(--leading-relaxed);
}

.legal-content ul,
.legal-content ol {
  margin-bottom: var(--space-md);
}

.legal-content li {
  color: var(--color-text-light);
  margin-bottom: var(--space-xs);
  line-height: var(--leading-relaxed);
}

.legal-content .effective-date {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-2xl);
  font-style: italic;
}

/* === Inline References === */
.inline-ref {
  color: var(--color-accent-dark);
  font-size: var(--text-xs);
  text-decoration: none;
  vertical-align: super;
}

.inline-ref:hover {
  text-decoration: underline;
}

/* === Loading / State === */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: var(--space-md); }
.mt-2 { margin-top: var(--space-xl); }
.mt-3 { margin-top: var(--space-2xl); }
.mb-1 { margin-bottom: var(--space-md); }
.mb-2 { margin-bottom: var(--space-xl); }
.mb-3 { margin-bottom: var(--space-2xl); }

/* === Responsive === */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .card-grid-staggered {
    grid-template-columns: 1fr;
  }

  .card-grid-staggered .card:nth-child(2),
  .card-grid-staggered .card:nth-child(3) {
    margin-top: 0;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-content h1 {
    font-size: var(--text-3xl);
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 56px;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-primary);
    flex-direction: column;
    padding: var(--space-lg);
    gap: var(--space-md);
    box-shadow: var(--shadow-lg);
  }

  .site-nav.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    padding: var(--space-2xl) var(--space-md);
  }

  .hero-content h1 {
    font-size: var(--text-2xl);
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .section-header h2 {
    font-size: var(--text-2xl);
  }

  .article-header h1 {
    font-size: var(--text-2xl);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

@media print {
  .site-header,
  .site-footer,
  .menu-toggle {
    display: none;
  }

  body {
    color: #000;
    background: #fff;
  }

  a {
    color: #000;
  }
}

/* Utility helpers */
.visually-hidden:not(:focus):not(:active) {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
}
.ov-typography-smooth {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
@media (min-width: 1280px) {
  .ov-section-wide .container {
    max-width: 1200px;
  }
}
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .ov-render-crisp {
    image-rendering: -webkit-optimize-contrast;
  }
}
.ov-border-fix td:first-child {
  border-left-width: 1px;
}
