/* =====================================================
   Assemble — Privacy Policy page
   ===================================================== */

.legal {
    max-width: 780px;
    margin: 0 auto;
    padding: 72px 24px 88px;
}

/* ----- Header ----- */
.legal-header {
    text-align: center;
    margin-bottom: 8px;
}

.legal-header h1 {
    font-size: 2.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--btn-1), var(--btn-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    /* color: var(--text-primary); */
}

.legal-meta {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.legal-note {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 40px;
}

/* ----- At a glance box ----- */
.glance {
    background: var(--card-img-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
}

.glance h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 8px;
    padding-top: 0;
    border-top: none;
}

.glance > p {
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.glance ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.glance li {
    font-size: 0.95rem;
    line-height: 1.6;
}

.glance li strong {
    color: var(--text-highlight);
}

/* ----- Body ----- */
.legal h2 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.3;
    margin: 56px 0 16px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.legal h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 28px 0 8px;
}

.legal p {
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 16px;
}

.legal ul {
    margin: 0 0 20px 22px;
    padding: 0;
}

.legal li {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 10px;
}

.legal a {
    color: var(--text-highlight);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: var(--card-img-2);
}

.legal a:hover {
    color: var(--btn-1);
}

.legal strong {
    font-weight: 700;
}

.legal em {
    color: var(--text-muted);
}

/* ----- Tables ----- */
.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 16px 0 24px;
}

.legal table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    background: #fff;
}

.legal th,
.legal td {
    border: 1px solid var(--border);
    padding: 12px 14px;
    text-align: left;
    vertical-align: top;
    line-height: 1.55;
}

.legal th {
    background: var(--bg-secondary);
    font-weight: 700;
}

.legal table.wide {
    min-width: 640px;   /* CCPA 5 欄表格：手機端橫向捲動 */
}

/* ----- Disclaimer ----- */
.legal-disclaimer {
    margin-top: 56px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    text-align: center;
}

/* ----- Responsive ----- */
@media (max-width: 640px) {
    .legal {
        padding: 48px 20px 64px;
    }
    .legal-header h1 {
        font-size: 2.25rem;
    }
    .glance {
        padding: 24px 20px;
    }
    .legal table {
        font-size: 0.8rem;
    }
    .legal th,
    .legal td {
        padding: 10px 8px;
    }
}
