/* Terms of Use shown as a document (terms.php). The same sheet styles are used for the PDF copy. */
.tdoc-wrap { max-width: 1240px; margin: 36px auto 80px; padding: 0 20px; font-family: 'Plus Jakarta Sans', 'Segoe UI', Arial, sans-serif; color: #1e2329; }
.tdoc-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.tdoc-bar h1 { margin: 0; font-size: 26px; font-weight: 900; letter-spacing: -.5px; display: flex; align-items: center; gap: 12px; }
.tdoc-bar h1 i { color: #ff3b30; }
.tdoc-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.tdoc-btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 12px; border: 1px solid #e6e9ed; background: #fff; color: #1e2329; font-size: 14px; font-weight: 800; text-decoration: none; cursor: pointer; }
.tdoc-btn:hover { border-color: #ff3b30; color: #d63027; }
.tdoc-btn.primary { background: #ff3b30; border-color: #ff3b30; color: #fff; }
.tdoc-btn.primary:hover { background: #e0281d; color: #fff; }

.tdoc-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; align-items: start; }
.tdoc-toc { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; background: #fff; border: 1px solid #eceff2; border-radius: 16px; padding: 18px 8px 14px; font-size: 13.5px; }
.tdoc-toc h2 { margin: 0 12px 10px; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: #8a919a; }
.tdoc-toc ol { list-style: none; margin: 0; padding: 0; }
.tdoc-toc a { display: flex; gap: 10px; padding: 6px 12px; border-radius: 8px; color: #3a4350; text-decoration: none; line-height: 1.35; }
.tdoc-toc a:hover { background: #f4f6f8; color: #d63027; }
.tdoc-toc a b { flex: 0 0 24px; color: #ff3b30; font-weight: 800; }
.tdoc-toc .sep { margin: 10px 12px 4px; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: #8a919a; }

/* The sheet */
.tdoc-doc { background: #fff; border: 1px solid #e3e7eb; border-radius: 6px; box-shadow: 0 10px 40px rgba(30, 35, 41, .08); padding: 64px 72px 72px; font-size: 15px; line-height: 1.75; color: #28303a; text-align: justify; hyphens: auto; min-width: 0; }
.tdoc-cover { text-align: left; padding: 40px 0 56px; border-bottom: 3px double #d5dae0; margin-bottom: 36px; }
.tdoc-cover img { height: 54px; margin-bottom: 70px; display: block; }
.tdoc-cover .kicker { font-size: 13px; font-weight: 800; letter-spacing: 3px; text-transform: uppercase; color: #ff3b30; margin-bottom: 14px; }
.tdoc-cover h2 { margin: 0 0 22px; font-size: 46px; line-height: 1.08; font-weight: 900; letter-spacing: -1.4px; color: #1e2329; text-align: left; }
.tdoc-cover p.lead { font-size: 17px; color: #4a5560; max-width: 640px; margin: 0 0 40px; text-align: left; }
.tdoc-meta { border-collapse: collapse; font-size: 14px; width: 100%; max-width: 640px; }
.tdoc-meta th { text-align: left; font-weight: 700; color: #707a8a; padding: 9px 20px 9px 0; width: 190px; border-top: 1px solid #e6e9ed; vertical-align: top; }
.tdoc-meta td { padding: 9px 0; border-top: 1px solid #e6e9ed; font-weight: 600; color: #1e2329; }
.tdoc-meta tr:last-child th, .tdoc-meta tr:last-child td { border-bottom: 1px solid #e6e9ed; }
.tdoc-notice { border: 1.5px solid #1e2329; padding: 18px 22px; margin: 0 0 40px; font-size: 14.5px; line-height: 1.7; background: #fafbfc; }
.tdoc-notice strong:first-child { display: block; letter-spacing: 1.5px; text-transform: uppercase; font-size: 12px; margin-bottom: 6px; color: #d63027; }
.tdoc-contents { margin: 0 0 20px; }
.tdoc-contents h3 { font-size: 20px; margin: 0 0 16px; letter-spacing: -.3px; text-align: left; }
.tdoc-contents ol { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 40px; font-size: 14px; line-height: 1.55; }
.tdoc-contents li { break-inside: avoid; display: flex; gap: 10px; padding: 3px 0; border-bottom: 1px dotted #d5dae0; }
.tdoc-contents li b { flex: 0 0 26px; color: #1e2329; }
.tdoc-contents a { color: #28303a; text-decoration: none; }
.tdoc-contents a:hover { color: #d63027; }
.tdoc-contents .sep { column-span: all; margin-top: 14px; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: #8a919a; border: 0; }

.tdoc-part { margin-top: 44px; scroll-margin-top: 20px; }
.tdoc-part > h2 { margin: 0 0 18px; padding-bottom: 8px; border-bottom: 2px solid #1e2329; font-size: 20px; font-weight: 900; letter-spacing: -.2px; text-transform: uppercase; text-align: left; display: flex; gap: 12px; break-after: avoid; }
.tdoc-part > h2 span { color: #ff3b30; min-width: 30px; }
.tdoc-clause { display: grid; grid-template-columns: 56px minmax(0, 1fr); margin: 0 0 14px; }
.tdoc-clause .no { font-weight: 800; color: #1e2329; font-size: 14px; font-variant-numeric: tabular-nums; }
.tdoc-clause p { margin: 0 0 8px; }
.tdoc-clause p strong.h { color: #1e2329; }
.tdoc-clause ol.items { list-style: none; margin: 4px 0 6px; padding: 0; counter-reset: item; }
.tdoc-clause ol.items li { position: relative; padding-left: 38px; margin-bottom: 7px; counter-increment: item; }
.tdoc-clause ol.items li::before { content: "(" counter(item, lower-alpha) ")"; position: absolute; left: 0; font-weight: 700; color: #1e2329; }
.tdoc-def, .tdoc-table { border-collapse: collapse; width: 100%; margin: 4px 0 12px; font-size: 14px; line-height: 1.55; text-align: left; }
.tdoc-def td, .tdoc-def th, .tdoc-table td, .tdoc-table th { border: 1px solid #d5dae0; padding: 8px 12px; vertical-align: top; }
.tdoc-def td:first-child { width: 190px; font-weight: 800; color: #1e2329; background: #f7f8fa; }
.tdoc-table th { background: #1e2329; color: #fff; font-weight: 700; font-size: 12.5px; letter-spacing: .4px; }
.tdoc-table tr:nth-child(even) td { background: #fafbfc; }
.tdoc-schedule { margin-top: 56px; }
#schedule-A { break-before: page; }
.tdoc-schedule > h2 { margin: 0 0 6px; font-size: 22px; font-weight: 900; letter-spacing: -.3px; text-align: left; }
.tdoc-schedule > p.sub { margin: 0 0 18px; color: #707a8a; font-size: 14px; text-align: left; }
.tdoc-schedule h3 { font-size: 16px; margin: 22px 0 8px; text-align: left; }
.tdoc-lock { margin: 40px 0 0; padding: 12px 16px; border: 1.5px solid #1e2329; background: #fafbfc; font-size: 14px; text-align: left; break-inside: avoid; }
.tdoc-end { margin-top: 60px; padding-top: 18px; border-top: 3px double #d5dae0; text-align: center; color: #707a8a; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; }
.tdoc-doc a { color: #d63027; text-decoration: none; font-weight: 600; }
.tdoc-doc a:hover { text-decoration: underline; }

@media (max-width: 1040px) {
    .tdoc-layout { grid-template-columns: minmax(0, 1fr); }
    .tdoc-toc { position: static; max-height: 280px; }
}
@media (max-width: 720px) {
    .tdoc-doc { padding: 30px 20px 40px; font-size: 14.5px; text-align: left; hyphens: manual; }
    .tdoc-cover h2 { font-size: 32px; }
    .tdoc-cover img { margin-bottom: 40px; }
    .tdoc-contents ol { columns: 1; }
    .tdoc-clause { grid-template-columns: 44px minmax(0, 1fr); }
    .tdoc-meta th { width: 120px; }
    .tdoc-def td:first-child { width: 110px; }
    .tdoc-table { display: block; overflow-x: auto; }
}

/* Print and PDF: an A4 document with a running head and page numbers, without the site around it. */
@page { size: A4; margin: 22mm 18mm 20mm; @top-center { content: "ASmartBank Terms of Use  |  ASB-TCS-2026-V2"; font: 8pt 'Plus Jakarta Sans', Arial, sans-serif; color: #707a8a; } @bottom-center { content: "Page " counter(page) " of " counter(pages); font: 8pt 'Plus Jakarta Sans', Arial, sans-serif; color: #707a8a; } }
@page :first { @top-center { content: ""; } }
@media print {
    header, footer, nav.main-nav-bar, .bank-header-container, .tdoc-bar, .tdoc-toc, #cookieBanner, .cookie-banner, .cookie-consent { display: none !important; }
    body { background: #fff !important; margin: 0; }
    .tdoc-wrap { max-width: none; margin: 0; padding: 0; }
    .tdoc-layout { display: block; }
    .tdoc-doc { border: 0; box-shadow: none; padding: 0; font-size: 10pt; line-height: 1.55; border-radius: 0; }
    .tdoc-cover { padding: 30mm 0 20mm; margin-bottom: 0; border-bottom: 0; break-after: page; }
    .tdoc-cover h2 { font-size: 34pt; }
    .tdoc-contents { break-after: page; }
    .tdoc-contents ol { font-size: 9.5pt; line-height: 1.35; }
    .tdoc-contents li { padding: 1.5pt 0; }
    .tdoc-contents h3 { margin-bottom: 8pt; }
    .tdoc-notice { margin-bottom: 14pt; padding: 10pt 14pt; font-size: 9.5pt; line-height: 1.5; }
    .tdoc-schedule { margin-top: 22pt; }
    .tdoc-part { margin-top: 18pt; }
    .tdoc-part > h2 { font-size: 13pt; }
    .tdoc-clause, .tdoc-def tr, .tdoc-table tr { break-inside: avoid; }
    .tdoc-clause.has-table { break-inside: auto; }
    .tdoc-doc a { color: #1e2329; }
}
body.tdoc-pdf { background: #fff; margin: 0; }
body.tdoc-pdf .tdoc-wrap { margin: 0; max-width: none; padding: 0; }
