/* ========================================
   Privacy Policy Specific Styles
   隐私政策页面专用样式
   ======================================== */

/* Table Styles - 表格样式 */
table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
    box-shadow: 0 4px 8px var(--shadow-color);
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    table-layout: fixed;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
}

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

th {
    background-color: var(--highlight-bg);
    color: var(--title-color);
}

/* Privacy Policy Text - 隐私政策文本 */
.privacy-policy-text {
    margin-top: 3rem;
}

.privacy-policy-text h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: var(--title-color);
}

.privacy-policy-text p,
.privacy-policy-text li {
    white-space: pre-wrap;
    word-wrap: break-word;
}

.privacy-policy-text p.last-updated {
    color: var(--secondary-text-color);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    text-align: center;
}

/* Responsive Table - 响应式表格 */
@media (max-width: 600px) {
    table {
        width: 100% !important;
        max-width: 100% !important;
    }

    table, thead, tbody, th, td, tr {
        display: block;
        width: 100%;
        max-width: 100%;
    }

    thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    tr {
        border: 1px solid var(--border-color);
        margin-bottom: 0.5rem;
        border-radius: 12px;
    }

    td {
        border: none;
        border-bottom: 1px solid var(--border-color);
        position: relative;
        padding-left: 50%;
        background-color: var(--card-bg);
    }

    td:first-child {
        border-top-left-radius: 12px;
        border-top-right-radius: 12px;
    }

    td:last-child {
        border-bottom-left-radius: 12px;
        border-bottom-right-radius: 12px;
        border-bottom: none;
    }

    td:before {
        position: absolute;
        top: 1rem;
        left: 1rem;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        font-weight: bold;
        color: var(--title-color);
    }

    #permission-table td:nth-of-type(1):before {
        content: attr(data-label);
    }

    #permission-table td:nth-of-type(2):before {
        content: attr(data-label);
    }

    #permission-table td:nth-of-type(3):before {
        content: attr(data-label);
    }

    #permission-table td:nth-of-type(4):before {
        content: attr(data-label);
    }

    #collection-table td:nth-of-type(1):before {
        content: attr(data-label);
    }

    #collection-table td:nth-of-type(2):before {
        content: attr(data-label);
    }

    #collection-table td:nth-of-type(3):before {
        content: attr(data-label);
    }

    #collection-table td:nth-of-type(4):before {
        content: attr(data-label);
    }
}
