/* Pacy Legal Documents - Shared Styles */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: #1d1d1f;
    background: #ffffff;
    padding: 0 24px;
    max-width: 800px;
    margin: 0 auto;
}

@media (prefers-color-scheme: dark) {
    body {
        color: #f5f5f7;
        background: #1a1a1a;
    }
}

h1 {
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 1.4em;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
}

@media (prefers-color-scheme: dark) {
    h2 {
        border-bottom-color: #333;
    }
}

h3 {
    font-size: 1.1em;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 12px;
}

p {
    margin-bottom: 16px;
}

a {
    color: #007aff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

@media (prefers-color-scheme: dark) {
    a {
        color: #0a84ff;
    }
}

ul, ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

li {
    margin-bottom: 8px;
}

.header {
    padding: 40px 0 32px;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 32px;
}

@media (prefers-color-scheme: dark) {
    .header {
        border-bottom-color: #333;
    }
}

.header .app-name {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 4px;
}

@media (prefers-color-scheme: dark) {
    .header .app-name {
        color: #999;
    }
}

.last-updated {
    font-size: 0.9em;
    color: #666;
}

@media (prefers-color-scheme: dark) {
    .last-updated {
        color: #999;
    }
}

.lang-switch {
    display: inline-block;
    margin-top: 12px;
    padding: 6px 14px;
    background: #f0f0f0;
    border-radius: 8px;
    font-size: 0.85em;
    color: #333;
}

@media (prefers-color-scheme: dark) {
    .lang-switch {
        background: #2d2d2d;
        color: #ccc;
    }
}

.contact-section {
    margin-top: 48px;
    padding: 24px;
    background: #f5f5f5;
    border-radius: 12px;
}

@media (prefers-color-scheme: dark) {
    .contact-section {
        background: #2d2d2d;
    }
}

.contact-section h2 {
    margin-top: 0;
    border: none;
    padding-bottom: 0;
}

.footer {
    margin-top: 48px;
    padding: 24px 0;
    border-top: 1px solid #e0e0e0;
    text-align: center;
    color: #666;
    font-size: 0.85em;
}

@media (prefers-color-scheme: dark) {
    .footer {
        border-top-color: #333;
        color: #999;
    }
}

@media (max-width: 768px) {
    body {
        padding: 0 16px;
    }

    h1 {
        font-size: 1.6em;
    }

    h2 {
        font-size: 1.2em;
    }
}
