/* RateSnap shared subpage styles — dark green theme, matches index.html */

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

:root {
    --bg: #060907;
    --surface: rgba(30, 48, 38, 0.5);
    --border: rgba(148, 196, 166, 0.16);
    --text: #eaf3ec;
    --body: #cfdcd1;
    --muted: #96ad9c;
    --faint: #6f8577;
    --accent: #43d492;
    --accent-bright: #7be8b8;
    --gold: #f5c451;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background:
        radial-gradient(1100px 500px at 80% -10%, rgba(67, 212, 146, 0.07), transparent 60%),
        radial-gradient(900px 500px at 10% 30%, rgba(45, 140, 120, 0.06), transparent 60%),
        linear-gradient(180deg, #060907 0%, #0a1810 55%, #0f2417 100%);
    background-color: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    text-decoration: none;
    font-size: 0.95rem;
    margin-bottom: 30px;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: var(--accent-bright);
}

.back-link .back-arrow {
    color: var(--gold);
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text);
    margin-bottom: 10px;
}

.last-updated {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 30px;
}

.intro {
    color: var(--body);
    font-size: 1.05rem;
    margin-bottom: 24px;
    line-height: 1.7;
}

.loading {
    text-align: center;
    color: var(--muted);
    padding: 40px;
}

.error {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 8px;
    padding: 20px;
    color: #fca5a5;
}

/* Content cards (FAQ items, policy sections) */
.section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}

.q {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
}

.a {
    color: var(--body);
    font-size: 1rem;
}

.a strong {
    color: var(--text);
}

.section-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 15px;
}

.section-content {
    color: var(--body);
    font-size: 1rem;
}

.section-content p {
    margin-bottom: 12px;
}

.section-content p:last-child {
    margin-bottom: 0;
}

.section-content strong {
    color: var(--text);
}

/* Data sources page */
.sources-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 40px;
}

.source-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.source-logo {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.source-info {
    flex: 1;
}

.source-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 5px;
}

.source-fullname {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.source-description {
    color: var(--body);
    font-size: 1rem;
    margin-bottom: 10px;
}

.source-attribution {
    color: var(--faint);
    font-size: 0.85rem;
    font-style: italic;
}

.info-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}

.info-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 15px;
}

.info-content {
    color: var(--body);
    font-size: 1rem;
}

.trademarks {
    color: var(--faint);
    font-size: 0.85rem;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(148, 196, 166, 0.1);
}

/* Footer */
.footer {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--accent);
}

.copyright {
    color: #56685c;
    font-size: 0.85rem;
}

@media (max-width: 600px) {
    .page-title {
        font-size: 1.8rem;
    }

    .source-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}
