/* Terms & Policies Page Styles */

body {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.page {
    padding: 30px 0 50px;
}

.title {
    font-size: 32px;
    font-weight: 700;
    color: #1a252f;
    text-align: center;
    margin-bottom: 6px;
}

.subtitle {
    text-align: center;
    color: #666;
    font-size: 14px;
    max-width: 900px;
    margin: 0 auto 18px;
}

/* Table of Contents */
.toc {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.06);
    padding: 16px 20px;
    margin: 0 auto 20px;
    max-width: 950px;
}

.toc h2 {
    font-size: 14px;
    margin-bottom: 10px;
    color: #1a252f;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.toc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 6px;
}

.toc a {
    text-decoration: none;
    color: #0088cc;
    padding: 6px 10px;
    border-radius: 6px;
    background: rgba(0, 136, 204, 0.04);
    border: 1px solid rgba(0, 136, 204, 0.10);
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.toc a:hover {
    background: rgba(0, 136, 204, 0.10);
}

/* Policy Sections */
.policy {
    scroll-margin-top: 90px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.06);
    padding: 20px 24px;
    margin: 14px auto;
    max-width: 950px;
}

.policy-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a252f;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(0, 136, 204, 0.15);
    display: flex;
    align-items: center;
    gap: 10px;
}

.policy-title .num {
    background: linear-gradient(135deg, #0088cc, #00cc66);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
}

.terms-pre {
    white-space: pre-wrap;
    word-break: break-word;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    color: #444;
}

.terms-pre .sub-content {
    display: block;
    margin-left: 18px;
}

/* Back to Top */
.to-top {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #0088cc;
    margin: 10px auto 0;
    padding: 6px 10px;
    border-radius: 6px;
    background: rgba(0, 136, 204, 0.04);
    border: 1px solid rgba(0, 136, 204, 0.10);
    max-width: 950px;
    font-size: 12px;
}

.to-top:hover {
    background: rgba(0, 136, 204, 0.10);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .title {
        font-size: 26px;
    }
    
    .toc-grid {
        grid-template-columns: 1fr;
    }
    
    .policy {
        padding: 16px 18px;
    }
}
