:root {
    --primary-color: #2148C0;
    --secondary-color: #FF5722;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    color: #333;
}

/* navbar (identical to about.php / index.php) */
.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 8px 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
    padding: 0;
}

.navbar-brand img {
    height: 80px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s;
}

.navbar-brand img:hover {
    transform: scale(1.05);
}

.nav-link {
    color: #333 !important;
    font-weight: 500;
    margin: 0 10px;
    transition: color 0.3s;
    cursor: pointer;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

.btn-login {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 25px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-login:hover {
    background: var(--primary-color);
    color: white;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -200px;
    right: -100px;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.95;
}

/* Terms Content */
.terms-section {
    padding: 70px 0 90px;
}

.terms-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(33, 72, 192, 0.12);
    padding: 50px;
}

.terms-updated {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 35px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.terms-back-row {
    margin-bottom: 18px;
}

.terms-back-row-bottom {
    margin-top: 40px;
    margin-bottom: 0;
    padding-top: 25px;
    border-top: 1px solid #eee;
}

.btn-back-register {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 22px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-back-register:hover {
    background: var(--primary-color);
    color: white;
}

.terms-card h2 {
    color: var(--primary-color);
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 35px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.terms-card h2:first-of-type {
    margin-top: 0;
}

.terms-card h2 i {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.terms-card p,
.terms-card li {
    color: #555;
    line-height: 1.75;
    font-size: 0.97rem;
}

.terms-card ul {
    margin: 10px 0 10px 22px;
}

.terms-card li {
    margin-bottom: 8px;
}

.terms-toc {
    background: #f8f9fa;
    border-radius: 14px;
    padding: 22px 26px;
    margin-bottom: 40px;
}

.terms-toc h5 {
    color: var(--primary-color);
    font-size: 1rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.terms-toc ol {
    margin-left: 18px;
}

.terms-toc a {
    color: #444;
    text-decoration: none;
    font-size: 0.92rem;
    line-height: 1.9;
    transition: color 0.2s;
}

.terms-toc a:hover {
    color: var(--secondary-color);
}

/* footer (identical to about.php / index.php) */
.footer {
    background: #1a1a2e;
    color: white;
    padding: 60px 0 20px;
}

.footer h5 {
    color: white;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer a {
    color: #bbb;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.footer a:hover {
    color: var(--secondary-color);
}

.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.social-icons a {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    transition: all 0.3s;
}

.social-icons a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #999;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .navbar-brand img {
        height: 50px;
    }

    .page-header h1 {
        font-size: 2.1rem;
    }

    .terms-card {
        padding: 30px 22px;
    }
}