/* 私隱政策／服務條款靜態頁 */
.legal-page {
    margin: 0;
    min-height: 100dvh;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue",
        "PingFang HK", "Noto Sans TC", sans-serif;
    -webkit-font-smoothing: antialiased;
}

.legal-page__header,
.legal-page__main {
    box-sizing: border-box;
    width: min(720px, 100%);
    margin: 0 auto;
    padding-left: max(16px, var(--safe-left));
    padding-right: max(16px, var(--safe-right));
}

.legal-page__header {
    padding-top: calc(16px + var(--safe-top));
    padding-bottom: 12px;
}

.legal-page__back {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--accent);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
}

.legal-page__back:hover {
    color: var(--accent-hover);
}

.legal-page__title {
    margin: 0 0 6px;
    font-size: 28px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.legal-page__meta {
    margin: 0;
    font-size: 13px;
    color: var(--text-secondary);
}

.legal-page__main {
    padding-bottom: calc(40px + var(--safe-bottom));
}

.legal-page__section {
    margin: 0 0 22px;
}

.legal-page__section h2 {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 650;
}

.legal-page__section p,
.legal-page__section li {
    margin: 0 0 8px;
    font-size: 15px;
    line-height: 1.55;
    color: var(--text-primary);
}

.legal-page__section ul {
    margin: 0;
    padding-left: 1.2em;
}

.legal-page__section code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.92em;
}

.legal-page__section a,
.legal-page__footer-links a {
    color: var(--accent);
    text-decoration: none;
    word-break: break-all;
}

.legal-page__section a:hover,
.legal-page__footer-links a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.legal-page__footer-links {
    margin: 28px 0 0;
    font-size: 14px;
    color: var(--text-secondary);
}
