/* ==========================================================================
   Community Plugin – DSGVO Privacy Center
   ========================================================================== */

.community-privacy {
    max-width: 640px;
    margin-inline: auto;
}

.community-privacy__intro {
    margin-bottom: var(--space-6);
}

.community-privacy__intro p {
    color: #6b7280;
    font-size: 0.9em;
    margin-top: 0;
    margin-bottom: 0;
}

/* Daten-Tabellen */
.community-data-section {
    margin-bottom: 2rem;
}

.community-data-section h3 {
    font-weight: 700;
    color: #374151;
    margin-bottom: .75rem;
    padding-bottom: .4rem;
    border-bottom: 1px solid #e5e7eb;
}

.community-data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9em;
}

.community-data-table th,
.community-data-table td {
    padding: .55rem .75rem;
    text-align: left;
    border-bottom: 1px solid #f3f4f6;
}

.community-data-table th {
    color: #6b7280;
    font-weight: 600;
    width: 40%;
    white-space: nowrap;
}

.community-data-table td {
    color: #111827;
    word-break: break-word;
}

.community-data-table tr:last-child th,
.community-data-table tr:last-child td {
    border-bottom: none;
}

/* Einwilligungen */
.community-consents-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.community-consent-item {
    padding: 1rem 1.25rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fafafa;
}

.community-consent-item__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: .35rem;
}

.community-consent-item__title {
    font-weight: 600;
    font-size: 0.95em;
}

.community-consent-item__badge {
    font-size: 0.8em;
    padding: .2rem .6rem;
    border-radius: 99px;
    font-weight: 600;
}

.badge--accepted {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #86efac;
}

.badge--declined {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}

.community-consent-item__meta {
    font-size: 0.8em;
    color: #9ca3af;
    margin: .2rem 0 0;
}

/* Danger Box */
.community-privacy__danger-box {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
}

.community-privacy__danger-box h3 {
    color: #b91c1c;
    margin-top: 0;
}

.community-privacy__danger-box p,
.community-privacy__danger-box li {
    font-size: 0.9em;
    color: #7f1d1d;
}

.community-privacy__danger-box ul {
    margin: .5rem 0;
    padding-left: 1.25rem;
}

/* Info Box */
.community-privacy__info-box {
    background: #eff6ff;
    border: 1px solid #93c5fd;
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
}

.community-privacy__info-box p {
    font-size: 0.9em;
    color: #1e40af;
    margin: .4rem 0;
}

/* Danger-Button */
.community-btn--danger {
    background: var(--community-error);
    color: #fff;
    border: none;
}

.community-btn--danger:hover {
    background: var(--community-error-text);
}

.community-btn--danger:disabled {
    opacity: .6;
    cursor: not-allowed;
}
