/* ============================================
   e-PetVet – Shared styles for legal / policy pages
   ============================================ */

.page-header {
    background: var(--gradient-primary);
    padding: 120px 0 60px;
    color: #fff;
    text-align: center;
}

.page-header h1 {
    color: #fff;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.content-section {
    padding: 60px 0;
}

.policy-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.policy-nav a {
    background: var(--bg-muted);
    color: var(--text);
    border-radius: var(--radius-full);
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.policy-nav a:hover {
    background: var(--primary);
    color: #fff;
}

.policy-nav a.active {
    background: var(--primary);
    color: #fff;
}

.policy-content {
    max-width: 900px;
}

.policy-content h3 {
    color: var(--primary-dark);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-size: 1.35rem;
}

.policy-content h4 {
    color: var(--text);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.policy-content p {
    margin-bottom: 1rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.policy-content ul,
.policy-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.policy-content ol {
    list-style: decimal;
}

.policy-content ul li {
    list-style: disc;
}

.policy-content li {
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    line-height: 1.8;
}

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

.policy-content a {
    color: var(--primary);
    text-decoration: underline;
}

.policy-content a:hover {
    color: var(--primary-dark);
}

.last-updated {
    font-style: italic;
    color: var(--text-soft);
    margin-bottom: 1.5rem;
}

.policy-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0 1.5rem;
    font-size: 0.9375rem;
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.policy-table th,
.policy-table td {
    text-align: left;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--bg-muted);
    color: var(--text-muted);
    line-height: 1.6;
}

.policy-table th {
    background: var(--bg-muted);
    color: var(--text);
    font-weight: 600;
}

.policy-table tr:last-child td {
    border-bottom: none;
}

.note-box {
    background: var(--bg-elevated);
    border-left: 4px solid var(--primary);
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.note-box p:last-child {
    margin-bottom: 0;
}

.warning-box {
    background: #fffbeb;
    border-left: 4px solid var(--accent-warm);
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: var(--radius-sm);
}

.warning-box p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .page-header {
        padding: 100px 0 40px;
    }

    .policy-table {
        display: block;
        overflow-x: auto;
    }
}
