/* Accessibility Stylesheet */
@import "index.css"; /* Import base styles */

:where([class^="ri-"])::before { content: "\f3c2"; }

/* High Contrast Mode */
.high-contrast {
  --primary: #0000FF;
  --text-main: #000000;
  --text-secondary: #000000;
  --background: #FFFFFF;
  --background-alt: #FFFF00;
  --border: #000000;
}

/* Dark Mode */
.dark-mode {
  --primary: #4dabf7;
  --text-main: #E0E0E0;
  --text-secondary: #BBBBBB;
  --background: #121212;
  --background-alt: #1E1E1E;
  --border: #333333;
}

html.dark-mode {
  background-color: var(--background);
  color: var(--text-main);
}

html.dark-mode body {
  background-color: var(--background);
  color: var(--text-main);
}

html.dark-mode .bg-white {
  background-color: var(--background-alt);
}

html.dark-mode .text-gray-800 {
  color: var(--text-main);
}

html.dark-mode .text-gray-700 {
  color: var(--text-main);
}

html.dark-mode .text-gray-600 {
  color: var(--text-secondary);
}

html.dark-mode .text-gray-500 {
  color: var(--text-secondary);
}

html.dark-mode .text-gray-400 {
  color: var(--text-secondary);
}

html.dark-mode .bg-gray-50 {
  background-color: var(--background);
}

html.dark-mode .border-gray-300 {
  border-color: var(--border);
}

html.dark-mode .shadow-md,
html.dark-mode .shadow-sm {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}

/* Dyslexic Font */
html.dyslexic-font {
  font-family: 'OpenDyslexic', sans-serif;
  letter-spacing: 0.2px;
  word-spacing: 0.4px;
  line-height: 1.4;
}

/* Reduced Motion */
html.reduced-motion * {
  animation: none !important;
  transition: none !important;
}

/* Accessibility Controls */
.text-size-btn {
  min-width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.text-size-btn:hover {
  background-color: #f0f0f0;
}

.contrast-btn {
  min-width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.contrast-btn:hover {
  background-color: #f0f0f0;
}

/* Toggle Switch Styling */
input[type="checkbox"] + label {
  transition: background-color 0.3s ease;
}

input[type="checkbox"] + label span {
  transition: transform 0.3s ease;
}

/* Accessibility Statement specific styles */
.policy-section {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e2e8f0;
}

.policy-section:last-child {
  border-bottom: none;
}

.policy-section h3 {
  color: #0284c7;
  margin-bottom: 1rem;
}

.policy-section p {
  margin-bottom: 1rem;
}

.policy-section ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.policy-section ul li {
  margin-bottom: 0.5rem;
}

.policy-section ol {
  padding-left: 1.5rem;
  list-style-type: decimal;
  margin-bottom: 1rem;
}

.policy-section ol li {
  margin-bottom: 0.5rem;
}

.policy-updated {
  color: #718096;
  font-size: 0.875rem;
  font-style: italic;
}

.access-resources {
  background-color: #f3f4f6;
  padding: 1.5rem;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
}

.access-resources h4 {
  color: #0284c7;
  margin-bottom: 1rem;
}

.access-resources ul {
  padding-left: 1.5rem;
}

.compliance-badge {
  display: inline-block;
  background-color: #0284c7;
  color: white;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}