/* Policy pages (Privacy policy, Terms & conditions): sticky contents list + readable article */
.tp-meta { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin-top: 1rem; color: var(--ts-muted); font-size: .9rem; }
.tp-meta i { color: var(--ts-primary); margin-right: .35rem; }

.tp-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 2.5rem; align-items: start; }
@media (max-width: 991.98px) { .tp-layout { grid-template-columns: 1fr; gap: 1.5rem; } }

/* Contents list */
.tp-toc { position: sticky; top: 96px; background: var(--ts-card); border: 1px solid var(--ts-line); border-radius: var(--ts-radius); padding: 1.1rem; }
.tp-toc h6 { margin: 0 0 .7rem; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ts-muted); font-weight: 800; }
.tp-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; max-height: calc(100vh - 200px); overflow: auto; }
.tp-toc li { counter-increment: toc; }
.tp-toc a { display: flex; gap: .6rem; padding: .45rem .6rem; border-radius: 10px; color: var(--ts-text); font-size: .9rem; font-weight: 600; line-height: 1.35; text-decoration: none; transition: background .15s, color .15s; }
.tp-toc a::before { content: counter(toc, decimal-leading-zero); color: var(--ts-muted); font-weight: 700; font-size: .8rem; padding-top: .1rem; }
.tp-toc a:hover { background: var(--ts-soft); color: var(--ts-primary); }
.tp-toc a.active { background: rgba(11, 95, 165, .08); color: var(--ts-primary); }
.tp-toc a.active::before { color: var(--ts-primary); }
@media (max-width: 991.98px) {
    .tp-toc { position: static; }
    .tp-toc ol { max-height: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}

/* Summary card */
.tp-glance { border-radius: var(--ts-radius); padding: 1.5rem; margin-bottom: 2rem; background: linear-gradient(135deg, rgba(11, 95, 165, .07), rgba(43, 139, 224, .04)); border: 1px solid rgba(11, 95, 165, .15); }
.tp-glance h3 { margin: 0 0 1rem; font-size: 1.1rem; font-weight: 800; color: var(--ts-ink); display: flex; align-items: center; gap: .55rem; }
.tp-glance h3 i { color: var(--ts-primary); }
.tp-glance-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem 1.4rem; }
@media (max-width: 575.98px) { .tp-glance-grid { grid-template-columns: 1fr; } }
.tp-glance-grid div { display: flex; gap: .7rem; color: var(--ts-text); font-size: .93rem; line-height: 1.5; }
.tp-glance-grid i { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--ts-primary), var(--ts-primary-2)); font-size: .85rem; }

/* Article */
.tp-article { color: var(--ts-text); font-size: 1rem; line-height: 1.75; }
.tp-article > p.tp-intro { font-size: 1.05rem; color: var(--ts-ink); }
.tp-sec { scroll-margin-top: 100px; padding: 1.6rem 0; border-top: 1px solid var(--ts-line); }
.tp-sec:first-of-type { border-top: 0; padding-top: .4rem; }
.tp-sec h2 { display: flex; align-items: baseline; gap: .7rem; margin: 0 0 .8rem; font-size: 1.3rem; font-weight: 800; color: var(--ts-ink); }
.tp-sec h2 span { flex: none; font-size: .85rem; font-weight: 800; color: var(--ts-primary); background: rgba(11, 95, 165, .08); border-radius: 8px; padding: .15rem .5rem; }
.tp-sec h4 { margin: 1.1rem 0 .4rem; font-size: 1rem; font-weight: 700; color: var(--ts-ink); }
.tp-sec p { margin: 0 0 .8rem; }
.tp-sec ul { margin: 0 0 .9rem; padding-left: 1.2rem; }
.tp-sec li { margin-bottom: .35rem; }
.tp-sec li::marker { color: var(--ts-primary); }
.tp-sec a { color: var(--ts-primary); font-weight: 600; }
.tp-sec b, .tp-sec strong { color: var(--ts-ink); }

.tp-note { display: flex; gap: .8rem; margin: 1rem 0; padding: .9rem 1.1rem; border-radius: 14px; background: #fff8e6; border: 1px solid #f6dfa3; color: #6a4f0b; font-size: .94rem; }
.tp-note i { color: #c98a00; padding-top: .25rem; }
.tp-note.info { background: var(--ts-soft); border-color: var(--ts-line); color: var(--ts-text); }
.tp-note.info i { color: var(--ts-primary); }

.tp-table { width: 100%; border-collapse: separate; border-spacing: 0; margin: .4rem 0 1rem; border: 1px solid var(--ts-line); border-radius: 14px; overflow: hidden; font-size: .93rem; }
.tp-table th, .tp-table td { padding: .7rem .9rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--ts-line); }
.tp-table th { background: var(--ts-soft); color: var(--ts-ink); font-weight: 700; }
.tp-table tr:last-child td { border-bottom: 0; }
.tp-table-wrap { overflow-x: auto; }

/* Contact card at the end */
.tp-contact { margin-top: 1.5rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 767.98px) { .tp-contact { grid-template-columns: 1fr; } }
.tp-contact div { padding: 1.1rem; border-radius: 16px; background: var(--ts-card); border: 1px solid var(--ts-line); }
.tp-contact i { color: var(--ts-primary); font-size: 1.2rem; }
.tp-contact b { display: block; margin: .4rem 0 .15rem; color: var(--ts-ink); }
.tp-contact span, .tp-contact a { font-size: .93rem; color: var(--ts-text); word-break: break-word; }

@media print {
    .ts-header, .ts-footer, .ts-topbar, .tp-toc, .ts-top { display: none !important; }
    .tp-layout { display: block; }
}
