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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #ffffff;
    color: #000000;
    line-height: 1.6;
    min-height: 100vh;
}

.terms-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 40px 80px;
    width: 100%;
}

/* Header Section */
.terms-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
    padding: 40px 40px 20px;
    border-bottom: 1px solid #e5e5e5;
}

.terms-header-content {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.terms-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.terms-logo-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.terms-logo-text {
    font-size: 18px;
    font-weight: 500;
    color: #000000;
}

.terms-back-link {
    font-size: 16px;
    color: #000000;
    text-decoration: none;
    font-weight: 400;
}

.terms-back-link:hover {
    text-decoration: underline;
}

/* Main Content */
.terms-title {
    font-size: 48px;
    font-weight: bold;
    color: #000000;
    margin-bottom: 8px;
    line-height: 1.2;
}

.terms-subtitle {
    font-size: 14px;
    color: #666666;
    margin-bottom: 48px;
    font-weight: 400;
}

/* Terms Sections */
.terms-section {
    margin-bottom: 48px;
}

.terms-section-title {
    font-size: 24px;
    font-weight: bold;
    color: #000000;
    margin-bottom: 16px;
    line-height: 1.3;
}

.terms-content {
    font-size: 16px;
    color: #000000;
    line-height: 1.6;
}

.terms-content p {
    margin-bottom: 16px;
}

.terms-content p:last-child {
    margin-bottom: 0;
}

.terms-content a {
    color: #0000EE;
    text-decoration: underline;
}

.terms-content a:hover {
    color: #0000CC;
}

.terms-content ul,
.terms-content ol {
    margin: 8px 0 16px 1.25rem;
    padding: 0;
}

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

.terms-content li:last-child {
    margin-bottom: 0;
}

/* Responsive Design - Mobile First */
@media (max-width: 768px) {
    .terms-container {
        padding: 24px 20px 60px;
        max-width: 100%;
    }

    .terms-header {
        margin-bottom: 48px;
        padding: 24px 20px 20px;
        flex-wrap: nowrap;
    }

    .terms-header-content {
        padding: 0;
    }

    .terms-logo {
        gap: 10px;
        flex-shrink: 0;
    }

    .terms-logo-icon {
        width: 28px;
        height: 28px;
    }

    .terms-logo-text {
        font-size: 16px;
        font-weight: 600;
        white-space: nowrap;
    }

    .terms-back-link {
        font-size: 14px;
        flex-shrink: 0;
        margin-left: auto;
        padding-left: 16px;
    }

    .terms-title {
        font-size: 32px;
        margin-bottom: 6px;
        line-height: 1.25;
    }

    .terms-subtitle {
        font-size: 13px;
        margin-bottom: 40px;
    }

    .terms-section {
        margin-bottom: 40px;
    }

    .terms-section-title {
        font-size: 20px;
        margin-bottom: 12px;
        line-height: 1.3;
    }

    .terms-content {
        font-size: 15px;
        line-height: 1.6;
    }
}

@media (max-width: 480px) {
    .terms-container {
        padding: 20px 16px 48px;
    }

    .terms-header {
        margin-bottom: 40px;
        padding: 20px 16px 16px;
    }

    .terms-logo-icon {
        width: 24px;
        height: 24px;
    }

    .terms-logo-text {
        font-size: 15px;
    }

    .terms-back-link {
        font-size: 13px;
        padding-left: 12px;
    }

    .terms-title {
        font-size: 28px;
        margin-bottom: 6px;
    }

    .terms-subtitle {
        font-size: 12px;
        margin-bottom: 32px;
    }

    .terms-section {
        margin-bottom: 32px;
    }

    .terms-section-title {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .terms-content {
        font-size: 14px;
    }
}

/* Footer */
.terms-footer {
    background-color: #f9f9f9;
    padding: 40px;
    border-top: 1px solid #e5e5e5;
    margin-top: 60px;
}

.terms-footer-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.terms-footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.terms-footer-logo-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.terms-footer-logo-text {
    font-size: 18px;
    font-weight: 600;
    color: #000000;
}

.terms-footer-nav {
    display: flex;
    gap: 24px;
}

.terms-footer-link {
    color: #666666;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.2s;
}

.terms-footer-link:hover {
    color: #000000;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .terms-footer {
        padding: 32px 20px;
        margin-top: 48px;
    }

    .terms-footer-content {
        flex-direction: column;
        gap: 24px;
        align-items: flex-start;
    }

    .terms-footer-nav {
        flex-direction: column;
        gap: 16px;
        width: 100%;
    }

    .terms-footer-link {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .terms-footer {
        padding: 24px 16px;
        margin-top: 40px;
    }

    .terms-footer-logo-icon {
        width: 28px;
        height: 28px;
    }

    .terms-footer-logo-text {
        font-size: 16px;
    }

    .terms-footer-link {
        font-size: 14px;
    }
}

