/* app/assets/stylesheets/pages/privacy_policy.css */

/* Main container styles */
.prose {
    max-width: 65ch;
    margin: 0 auto;
    color: #374151;
    font-size: 1.125rem;
    line-height: 1.75;
}

/* Typography */
.prose h1 {
    color: #326eb4;
    font-size: 2.25rem;
    line-height: 2.5rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 2rem;
    text-align: center;
}

.prose h2 {
    color: #2c5282;
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0.5rem;
}

.prose p {
    margin-bottom: 1.25rem;
    color: #4b5563;
}

/* Lists */
.prose ul {
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
    padding-left: 1.75rem;
    list-style-type: disc;
}

.prose ul ul {
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
}

.prose li {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    padding-left: 0.375rem;
    color: #4b5563;
}

.prose li p {
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
}

/* Links */
.prose a {
    color: #326eb4;
    text-decoration: underline;
    transition: color 0.2s ease-in-out;
}

.prose a:hover {
    color: #2c5282;
}

/* Section Spacing */
.prose > * + * {
    margin-top: 1.5rem;
}

/* Definition Lists */
.prose dl {
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
}

.prose dt {
    font-weight: 600;
    color: #2c5282;
    margin-top: 1rem;
}

.prose dd {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

/* Blockquotes */
.prose blockquote {
    border-left: 4px solid #326eb4;
    padding-left: 1rem;
    margin-left: 0;
    margin-right: 0;
    font-style: italic;
    color: #4b5563;
}

/* Code blocks */
.prose code {
    background-color: #f3f4f6;
    padding: 0.2em 0.4em;
    border-radius: 0.25rem;
    font-size: 0.875em;
}

/* Tables */
.prose table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
}

.prose th {
    background-color: #f3f4f6;
    font-weight: 600;
    text-align: left;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
}

.prose td {
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
}

/* Custom containers */
.prose .notice {
    background-color: #f3f4f6;
    border-radius: 0.5rem;
    padding: 1.25rem;
    margin: 1.5rem 0;
}

.prose .important {
    background-color: #fee2e2;
    border-left: 4px solid #ef4444;
    padding: 1rem;
    margin: 1.5rem 0;
}

/* Header styles */
.header-logo img {
    transition: all 0.3s ease;
}

.header-logo img:hover {
    transform: scale(1.05);
}

/* Container padding */
.content-wrapper {
    padding: 2rem 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .prose {
        padding: 0 1rem;
        font-size: 1rem;
    }

    .prose h1 {
        font-size: 1.875rem;
        line-height: 2.25rem;
    }

    .prose h2 {
        font-size: 1.25rem;
        line-height: 1.75rem;
    }

    .content-wrapper {
        padding: 1rem 0.5rem;
    }
}

/* Print styles */
@media print {
    .prose {
        max-width: none;
    }

    .prose a {
        text-decoration: none;
        color: #000;
    }

    .prose h1 {
        color: #000;
    }

    .prose h2 {
        color: #000;
        border-bottom: 1px solid #000;
    }
}

/* RTL Support */
[dir="rtl"] .prose {
    text-align: right;
}

[dir="rtl"] .prose ul,
[dir="rtl"] .prose ol {
    padding-right: 1.75rem;
    padding-left: 0;
}

[dir="rtl"] .prose blockquote {
    border-left: none;
    border-right: 4px solid #326eb4;
    padding-left: 0;
    padding-right: 1rem;
}

/* Accessibility */
.prose :focus {
    outline: 2px solid #326eb4;
    outline-offset: 2px;
}

.prose [tabindex]:focus {
    outline: 2px solid #326eb4;
    outline-offset: 2px;
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    .prose {
        color: #e5e7eb;
    }

    .prose h1 {
        color: #60a5fa;
    }

    .prose h2 {
        color: #93c5fd;
        border-bottom-color: #4b5563;
    }

    .prose p {
        color: #d1d5db;
    }

    .prose a {
        color: #60a5fa;
    }

    .prose a:hover {
        color: #93c5fd;
    }

    .prose code {
        background-color: #374151;
    }

    .prose .notice {
        background-color: #374151;
    }

    .prose .important {
        background-color: #7f1d1d;
        border-left-color: #ef4444;
    }
}

/* Animation for section transitions */
.prose h2 {
    transition: color 0.3s ease;
}

.prose h2:hover {
    color: #326eb4;
}

/* Custom scrollbar */
.prose {
    scrollbar-width: thin;
    scrollbar-color: #326eb4 #f3f4f6;
}

.prose::-webkit-scrollbar {
    width: 8px;
}

.prose::-webkit-scrollbar-track {
    background: #f3f4f6;
}

.prose::-webkit-scrollbar-thumb {
    background-color: #326eb4;
    border-radius: 4px;
}

/* Additional spacing utilities */
.mt-8 {
    margin-top: 2rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Content width constraint */
.max-w-4xl {
    max-width: 56rem;
}

/* Section spacing */
.section-spacing {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

@media (min-width: 768px) {
    .section-spacing {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

/* RTL Support */
[dir="rtl"] .prose {
    text-align: right;
}

[dir="rtl"] .prose ul,
[dir="rtl"] .prose ol {
    padding-right: 1.75rem;
    padding-left: 0;
}

/* Font Support */
.font-arabic {
    font-family: 'NotoKufiArabic', system-ui, -apple-system, sans-serif;
}

/* Responsive Design */
@media (max-width: 768px) {
    .prose {
        padding: 0 1rem;
        font-size: 1rem;
    }
}
