* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: url('/background.png') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.agreement-box {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

h1 {
    color: #333;
    margin-bottom: 30px;
    font-size: 1.8em;
    text-align: center;
}

.agreement-content {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 30px;
    padding-right: 10px;
    color: #555;
    line-height: 1.6;
}

.agreement-content::-webkit-scrollbar {
    width: 8px;
}

.agreement-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.agreement-content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.agreement-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.agreement-content h3 {
    color: #667eea;
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.agreement-content p {
    margin-bottom: 15px;
}

.agreement-content ul,
.agreement-content ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.agreement-content li {
    margin-bottom: 8px;
}

.status-line {
    font-style: italic;
    color: #888;
}

.hidden {
    display: none !important;
}

.section-link,
.external-link {
    color: #667eea;
    text-decoration: underline;
    cursor: pointer;
    font-weight: 600;
}

.section-link:hover,
.external-link:hover {
    color: #5568d3;
}

.back-button {
    align-self: flex-start;
    background: none;
    border: none;
    color: #667eea;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 0;
    margin-bottom: 10px;
    transition: color 0.2s ease;
}

.back-button:hover {
    color: #5568d3;
}

.checkbox-container {
    margin-bottom: 25px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 12px;
    margin-top: 3px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-text {
    color: #333;
    font-size: 1em;
    line-height: 1.5;
}

.confirm-button {
    width: 100%;
    padding: 15px 30px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.confirm-button:hover:not(:disabled) {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.confirm-button:active:not(:disabled) {
    transform: translateY(0);
}

.confirm-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.error-message {
    margin-top: 15px;
    padding: 12px;
    background: #fee;
    color: #c33;
    border-radius: 6px;
    border: 1px solid #fcc;
    text-align: center;
}

@media (max-width: 768px) {
    .agreement-box {
        padding: 25px;
    }

    h1 {
        font-size: 1.5em;
    }

    .agreement-content {
        font-size: 0.9em;
    }
}
