* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.header {
    background: #E0301E;
    color: white;
    padding: 30px 40px;
    text-align: center;
}

.header h1 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
    font-family: Georgia, serif;
}

.header .subtitle {
    font-size: 14px;
    opacity: 0.9;
}

.content {
    padding: 40px;
}

.terms-scroll {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 15px;
    margin-bottom: 30px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fafafa;
}

.terms-scroll::-webkit-scrollbar {
    width: 8px;
}

.terms-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.terms-scroll::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.terms-scroll::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

.terms-content {
    padding: 30px;
    font-family: Georgia, serif;
    font-size: 15px;
    line-height: 1.8;
    color: #444;
}

.terms-content h2 {
    font-size: 18px;
    font-weight: bold;
    font-style: italic;
    margin: 25px 0 15px 0;
    color: #E0301E;
}

.terms-content h2:first-child {
    margin-top: 0;
}

.terms-content p {
    margin-bottom: 15px;
    text-align: justify;
}

.terms-content ol {
    margin-left: 30px;
    margin-bottom: 15px;
}

.terms-content ol li {
    margin-bottom: 10px;
}

.terms-content ol ol {
    margin-top: 10px;
    list-style-type: lower-alpha;
}

.terms-content a {
    color: #E0301E;
    text-decoration: none;
    transition: color 0.3s ease;
}

.terms-content a:hover {
    color: #B52A18;
    text-decoration: underline;
}

.acceptance-section {
    background: #f8f9fa;
    border-top: 3px solid #E0301E;
    padding: 25px 40px;
    text-align: center;
}

.acceptance-text {
    font-family: Georgia, serif;
    font-size: 14px;
    font-weight: bold;
    font-style: italic;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.6;
}

.accept-btn {
    display: inline-block;
    background: #E0301E;
    color: white;
    padding: 15px 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(215, 30, 40, 0.3);
}

.accept-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(215, 30, 40, 0.4);
}

.accept-btn:active {
    transform: translateY(0);
}

.footer {
    text-align: center;
    padding: 20px;
    background: #f5f5f5;
    font-size: 12px;
    color: #666;
}

.accept-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
}

.accept-btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

.scroll-hint {
    color: #E0301E;
    font-size: 14px;
    font-style: italic;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.scroll-hint.hidden {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .header {
        padding: 20px;
    }

    .header h1 {
        font-size: 22px;
    }

    .content {
        padding: 20px;
    }

    .terms-content {
        padding: 20px;
        font-size: 14px;
    }

    .acceptance-section {
        padding: 20px;
    }

    .accept-btn {
        padding: 12px 40px;
        font-size: 14px;
    }
}
