/* Terms of Use page */

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #fff;
    font-family: 'FC Vision', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', 'Noto Sans Thai', Arial, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

.bg-breadcrumbs {
    margin-bottom: 0 !important;
}

.tou-page {
    max-width: 100%;
    overflow-x: hidden;
}

/* Shared elements */
.tou-section--white {
    background: #fff;
}

.tou-section--gray {
    background: #F7F7F7;
}

.tou-eyebrow,
.tou-eyebrow--inline {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #009E93;
}

.tou-eyebrow {
    margin-bottom: 10px;
}

.tou-heading {
    margin: 0 0 40px;
    font-size: clamp(24px, 3.6vw, 32px);
    font-weight: 800;
    color: #12141A;
}

.tou-heading--tight {
    margin-bottom: 10px;
}

.tou-subheading {
    font-weight: 700;
    font-size: 15px;
    color: #12141A;
    margin: 36px 0 16px;
}

.tou-card-title {
    font-weight: 700;
    font-size: 15.5px;
    color: #12141A;
    margin-bottom: 6px;
}

.tou-card-text {
    font-size: 14.5px;
    line-height: 1.7;
    color: #4B5563;
}

.tou-bordered-card {
    border: 1px solid #E9EEF3;
    border-radius: 12px;
}

.tou-num-badge {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 14px;
}

.tou-num-badge--round {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    font-size: 14px;
}

.tou-num-badge--navy {
    background: #00109E;
}

.tou-num-badge--teal {
    background: #009E93;
}

/* Hero */
.tou-hero {
    background: #000C77;
    color: #fff;
    text-align: center;
}

.tou-hero-badge {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 999px;
    font-size: 12.5px;
    letter-spacing: .5px;
    color: rgba(255, 255, 255, .75);
    margin-bottom: 22px;
}

.tou-hero-title {
    margin: 0 0 18px;
    font-size: clamp(30px, 5.5vw, 48px);
    font-weight: 800;
    letter-spacing: -.5px;
}

.tou-hero-desc {
    margin: 0 auto 34px;
    max-width: 620px;
    font-size: clamp(14.5px, 2vw, 16.5px);
    line-height: 1.8;
    color: rgba(255, 255, 255, .82);
}

.tou-hero-btn {
    padding: 14px 30px;
    color: #fff;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
}

.tou-hero-btn--primary {
    background: #009E93;
}

.tou-hero-btn--outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .35);
}

/* Section 1: บริการอ่าน */
.tou-info-card {
    background: #F7F7F7;
    border-radius: 12px;
}

.tou-icon-box {
    width: 48px;
    height: 48px;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.tou-icon-box--blue {
    background: #E4ECF5;
}

.tou-icon-box--teal {
    background: #80E9E2;
}

.tou-callout {
    padding: 24px 28px;
    background: #EAFAF8;
    border-radius: 12px;
    border-left: 4px solid #009E93;
}

/* Section 2: อินเทอร์เน็ต */
.tou-step-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #E9EEF3;
}

.tou-step-text {
    font-size: 14px;
    line-height: 1.7;
    color: #2B3140;
}

/* Section 3: ระเบียบยืม-คืน */
.tou-intro-text {
    margin: 0 0 32px;
    font-size: 15px;
    color: #4B5563;
    line-height: 1.7;
}

.tou-warning-banner {
    padding: 18px 24px;
    background: #FFF3DC;
    border-left: 4px solid #FFA300;
    border-radius: 10px;
    margin-bottom: 32px;
    font-weight: 700;
    font-size: 14.5px;
    color: #805200;
}

.tou-rule-card {
    border: 1px solid #E9EEF3;
    border-radius: 14px;
    overflow: hidden;
}

.tou-rule-card-header {
    padding: 20px 26px;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
}

.tou-rule-card-header--navy {
    background: #00109E;
}

.tou-rule-card-header--teal {
    background: #009E93;
}

.tou-rule-row {
    font-size: 14.5px;
    color: #2B3140;
}

.tou-rule-note {
    font-size: 13px;
    color: #5B6270;
    line-height: 1.6;
    padding-top: 8px;
    border-top: 1px solid #E9EEF3;
}

.tou-bottom-note {
    margin-top: 24px;
    font-size: 13.5px;
    color: #5B6270;
}

/* Section 4: ขั้นตอนยืม-คืน */
.tou-step-row {
    border-bottom: 1px solid #E9EEF3;
}

.tou-step-row:last-child {
    border-bottom: none;
}

.tou-step-num {
    width: 36px;
    height: 36px;
    flex: none;
    border-radius: 999px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.tou-step-num--navy {
    background: #00109E;
}

.tou-step-num--teal {
    background: #009E93;
}

.tou-step-desc {
    font-size: 15px;
    line-height: 1.8;
    color: #1F2430;
    padding-top: 5px;
}

/* Section 5: อัดสำเนา */
.tou-badge-warning {
    padding: 4px 12px;
    background: #FFF3DC;
    color: #805200;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.tou-copy-card {
    background: #F7F7F7;
    border-radius: 12px;
}

.tou-copy-text {
    font-size: 13.5px;
    line-height: 1.7;
    color: #2B3140;
}
