/* Modern, Clean Style for Legal Documents */

:root {
    --primary-color: #0A84FF;
    --text-color: #1d1d1f;
    --text-light: #6e6e73;
    --background: #ffffff;
    --background-alt: #f5f5f7;
    --border-color: #d2d2d7;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --max-width: 900px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --text-color: #f5f5f7;
        --text-light: #a1a1a6;
        --background: #1d1d1f;
        --background-alt: #2d2d2f;
        --border-color: #424245;
        --shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background);
    padding: 20px;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    background: var(--background);
}

header {
    text-align: center;
    padding: 40px 20px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 40px;
}

header h1 {
    font-size: 2.5em;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-color);
}

.subtitle {
    font-size: 1.2em;
    color: var(--text-light);
}

main {
    padding: 0 20px;
}

h2 {
    font-size: 2em;
    font-weight: 600;
    margin: 30px 0 20px 0;
    color: var(--text-color);
}

h3 {
    font-size: 1.5em;
    font-weight: 600;
    margin: 25px 0 15px 0;
    color: var(--text-color);
}

h4 {
    font-size: 1.2em;
    font-weight: 600;
    margin: 20px 0 10px 0;
    color: var(--text-color);
}

p {
    margin-bottom: 15px;
    color: var(--text-color);
}

ul, ol {
    margin: 15px 0 15px 30px;
}

li {
    margin-bottom: 8px;
    color: var(--text-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.language-section {
    margin: 40px 0;
}

.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.link-card {
    background: var(--background-alt);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
    display: block;
    text-decoration: none;
}

.link-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    text-decoration: none;
}

.link-card h3 {
    margin: 0 0 10px 0;
    color: var(--primary-color);
}

.link-card p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.95em;
}

.info-section {
    background: var(--background-alt);
    border-radius: 12px;
    padding: 30px;
    margin: 40px 0;
}

.info-section p {
    margin-bottom: 15px;
}

.info-section strong {
    color: var(--primary-color);
}

.section {
    margin: 40px 0;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.section:last-child {
    border-bottom: none;
}

.highlight-box {
    background: var(--background-alt);
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
}

.checkmark-list li::before {
    content: "✅ ";
    margin-right: 8px;
}

.cross-list li::before {
    content: "❌ ";
    margin-right: 8px;
}

.checkmark-list, .cross-list {
    list-style: none;
    margin-left: 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background: var(--background-alt);
    font-weight: 600;
}

code {
    background: var(--background-alt);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.9em;
}

.back-link {
    display: inline-block;
    margin: 20px 0;
    padding: 10px 20px;
    background: var(--primary-color);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.back-link:hover {
    background: #0066cc;
    text-decoration: none;
    transform: translateX(-2px);
}

footer {
    text-align: center;
    padding: 40px 20px 20px 20px;
    margin-top: 60px;
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
}

footer p {
    margin-bottom: 5px;
}

.small {
    font-size: 0.9em;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }
    
    h2 {
        font-size: 1.6em;
    }
    
    .link-grid {
        grid-template-columns: 1fr;
    }
    
    body {
        padding: 10px;
    }
    
    main {
        padding: 0 10px;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .back-link {
        display: none;
    }
    
    .link-card {
        break-inside: avoid;
    }
}
