/* Shared styles for secondary pages */

.page-content {
    padding: 3rem 0 5rem;
    min-height: calc(100vh - 200px);
}

.page-content h1 {
    font-size: 2.25rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.page-intro {
    font-size: 1.125rem;
    color: var(--color-text-light);
    margin-bottom: 2.5rem;
}

.last-updated {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-bottom: 2.5rem;
}

.page-content section {
    margin-bottom: 2.5rem;
}

.page-content h2 {
    font-size: 1.375rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-border);
}

.page-content h3 {
    font-size: 1.125rem;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.page-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.page-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.page-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

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

.page-content a:hover {
    text-decoration: underline;
}

.page-content a.btn {
    color: #fff;
}

.page-content a.btn:hover {
    text-decoration: none;
}

/* FAQ styles */
.faq-section {
    margin-bottom: 3rem;
}

.faq-item {
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: var(--color-bg-alt);
    border-radius: 8px;
}

.faq-item h3 {
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}

.faq-item p {
    margin-bottom: 0;
    color: var(--color-text-light);
}

/* Contact page styles */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-card {
    padding: 1.5rem;
    background: var(--color-bg-alt);
    border-radius: 8px;
}

.contact-card h2 {
    font-size: 1.125rem;
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0.75rem;
}

.contact-card p {
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
}

.contact-detail {
    margin-top: 1rem;
}

.contact-note {
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: #fff;
    border-radius: 8px;
}

.contact-note h2 {
    color: #fff;
    border-bottom-color: rgba(255,255,255,0.2);
}

.contact-note a {
    color: var(--color-primary);
}

/* Rates page styles */
.rates-table {
    margin-bottom: 1.5rem;
}

.rate-row {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.rate-row:nth-child(odd) {
    background: var(--color-bg-alt);
}

.rate-label {
    font-weight: 500;
    color: var(--color-text);
}

.rate-value {
    color: var(--color-text-light);
}

.rate-value.highlight {
    color: var(--color-primary);
    font-weight: 600;
}

.rate-note {
    font-size: 0.875rem;
    color: var(--color-text-light);
    font-style: italic;
}

.example-box {
    background: var(--color-bg-alt);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.example-box p {
    margin-bottom: 0.5rem;
}

.cta-section {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: var(--color-bg-alt);
    border-radius: 8px;
}

.cta-note {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--color-text-light);
}

/* Responsive */
@media (max-width: 768px) {
    .page-content h1 {
        font-size: 1.75rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .rate-row {
        flex-direction: column;
        gap: 0.25rem;
    }
}

/* Privacy Notice (Regulation P) styles */
.privacy-facts,
.privacy-sharing {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    font-size: 0.9375rem;
}

.privacy-facts td,
.privacy-facts th,
.privacy-sharing td,
.privacy-sharing th {
    border: 1px solid var(--color-border);
    padding: 0.875rem 1rem;
    vertical-align: top;
    text-align: left;
    line-height: 1.55;
}

.privacy-facts .facts-label {
    background: var(--color-secondary);
    color: #fff;
    font-weight: 600;
    width: 160px;
    white-space: normal;
}

.privacy-facts .facts-heading {
    background: var(--color-secondary);
    color: #fff;
    font-weight: 600;
}

.privacy-facts ul,
.privacy-sharing ul {
    margin: 0.5rem 0 0;
    padding-left: 1.25rem;
}

.privacy-facts li,
.privacy-sharing li {
    margin-bottom: 0.25rem;
}

.privacy-facts p {
    margin-top: 0.75rem;
    margin-bottom: 0;
}

.privacy-sharing thead th {
    background: var(--color-bg-alt);
    font-weight: 600;
    color: var(--color-secondary);
}

.privacy-sharing tbody td:nth-child(2),
.privacy-sharing tbody td:nth-child(3) {
    width: 140px;
    text-align: center;
    font-weight: 600;
}

.page-content .section-heading {
    font-size: 1.25rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0;
    border-bottom: none;
    color: var(--color-secondary);
}

@media (max-width: 640px) {
    .privacy-facts .facts-label {
        width: auto;
        display: block;
    }

    .privacy-facts tr {
        display: block;
        margin-bottom: 1rem;
    }

    .privacy-facts td {
        display: block;
    }

    .privacy-sharing {
        font-size: 0.875rem;
    }

    .privacy-sharing tbody td:nth-child(2),
    .privacy-sharing tbody td:nth-child(3) {
        width: auto;
    }
}
