/* css/terms.css */

/* =========================================
   Base Styles & Reset
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Padauk', 'Pyidaungsu', sans-serif;
    background: #f4f7fa;
    color: #0f172a;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* =========================================
   Terms Container
   ========================================= */
.terms-wrapper {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
    flex: 1;
}

.terms-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 50px 60px;
    border: 1px solid #f1f5f9;
}

/* =========================================
   Header
   ========================================= */
.terms-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f1f5f9;
    flex-wrap: wrap;
    gap: 16px;
}

.terms-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.terms-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.terms-title-group h1 {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    line-height: 1.2;
}

.terms-title-group .subtitle {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
    padding-top: 10px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #10b981;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 10px;
    border: 1.5px solid #10b981;
    transition: all 0.2s;
}

.back-link:hover {
    background: #f0fdf4;
}

.back-link i {
    font-size: 14px;
}

/* =========================================
   Content
   ========================================= */
.terms-content {
    color: #334155;
    line-height: 1.8;
}

.terms-content .last-updated {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 24px;
    font-style: italic;
}

.terms-content h2 {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin: 32px 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
}

.terms-content h2:first-of-type {
    margin-top: 0;
}

.terms-content h3 {
    font-size: 17px;
    font-weight: 600;
    color: #1e293b;
    margin: 24px 0 12px 0;
}

.terms-content p {
    font-size: 15px;
    color: #475569;
    margin-bottom: 14px;
}

.terms-content ul {
    margin: 12px 0 20px 24px;
    list-style: none;
}

.terms-content ul li {
    font-size: 15px;
    color: #475569;
    margin-bottom: 10px;
    padding-left: 24px;
    position: relative;
}

.terms-content ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: 700;
}

.terms-content .highlight-box {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 20px 24px;
    margin: 20px 0;
}

.terms-content .highlight-box p {
    margin-bottom: 0;
    color: #065f46;
    font-weight: 500;
}

.terms-content .highlight-box i {
    color: #10b981;
    margin-right: 8px;
}

/* =========================================
   Footer
   ========================================= */
.terms-footer {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.terms-footer .footer-text {
    font-size: 13px;
    color: #94a3b8;
}

.terms-footer .btn-agree {
    background: #10b981;
    color: #ffffff;
    border: none;
    padding: 12px 32px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.terms-footer .btn-agree:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.terms-footer .btn-agree:active {
    transform: scale(0.98);
}

/* =========================================
   Responsive Design
   ========================================= */
@media (max-width: 768px) {
    .terms-wrapper {
        margin: 20px auto;
        padding: 0 16px;
    }

    .terms-card {
        padding: 30px 24px;
        border-radius: 16px;
    }

    .terms-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .terms-header-left {
        width: 100%;
    }

    .back-link {
        width: 100%;
        justify-content: center;
    }

    .terms-title-group h1 {
        font-size: 20px;
    }

    .terms-content h2 {
        font-size: 18px;
    }

    .terms-content h3 {
        font-size: 16px;
    }

    .terms-content p,
    .terms-content ul li {
        font-size: 14px;
    }

    .terms-footer {
        flex-direction: column;
        text-align: center;
    }

    .terms-footer .btn-agree {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .terms-card {
        padding: 24px 16px;
    }

    .terms-logo {
        height: 40px;
    }

    .terms-title-group h1 {
        font-size: 18px;
    }

    .terms-content h2 {
        font-size: 16px;
    }

    .terms-content ul {
        margin-left: 8px;
    }

    .terms-content .highlight-box {
        padding: 16px;
    }
}