/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #000000;
    color: #FFFFFF;
    line-height: 1.5;
    min-height: 100vh;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 240px 0px;
    min-height: 768px;
    display: flex;
    flex-direction: column;
    gap: 80px;
}

/* Header */
.header {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-self: stretch;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 108px;
    height: 61px;
}

.logo-icon {
    width: 89.47px;
    height: 55.32px;
    object-fit: contain;
}

/* Main Content */
.main-content {
    flex: 1;
}

.content-wrapper {
    display: flex;
    gap: 40px;
    align-self: stretch;
}

/* Left Content */
.left-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 393px;
}

.main-title {
    font-weight: 700;
    font-size: 48px;
    line-height: 1.21;
    color: #FFFFFF;
    width: 393px;
}

.description {
    font-weight: 400;
    font-size: 16px;
    color: #848484;
    width: 100%;
}

.links {
    display: flex;
    gap: 20px;
    width: fit-content;
}

.link {
    font-weight: 400;
    font-size: 16px;
    color: #26A4FF;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.link:hover {
    opacity: 0.8;
}

/* Right Content - iPhone Mockup */
.right-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.iphone-mockup {
    width: 363.38px;
    height: 461.25px;
    position: relative;
}

.iphone-frame {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.screen-content {
    position: absolute;
    top: 7.52px;
    left: 9.33px;
    width: 335.56px;
    height: 430.82px;
    object-fit: cover;
    z-index: 2;
    -webkit-mask: url('image/Mask.svg') no-repeat center;
    mask: url('image/Mask.svg') no-repeat center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

/* Copyright */
.copyright {
    font-weight: 400;
    font-size: 16px;
    color: #848484;
    text-align: left;
    align-self: stretch;
}

/* Support Page Styles */
.support-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-self: stretch;
    padding: 0px 250px 0px 0px;
    max-width: 800px;
}

.support-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 36px;
    line-height: 1.21;
    letter-spacing: -2%;
    color: #FFFFFF;
    margin: 0;
}

.support-description {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    color: #848484;
    margin: 0;
}

.support-email {
    color: #26A4FF;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.support-email:hover {
    opacity: 0.8;
}

.back-link {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.3;
    color: #26A4FF;
    text-decoration: none;
    transition: opacity 0.3s ease;
    width: fit-content;
}

.back-link:hover {
    opacity: 0.8;
}

/* Privacy Policy Page Styles */
.privacy-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-self: stretch;
    max-width: 800px;
}

.privacy-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 36px;
    line-height: 1.21;
    letter-spacing: -2%;
    color: #FFFFFF;
    margin: 0;
}

.privacy-section {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-self: stretch;
}

.privacy-subsection {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-self: stretch;
}

.privacy-intro {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.3;
    color: #DDDBD7;
    margin: 0;
}

.privacy-subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 1.3;
    color: #DDDBD7;
    margin: 0;
}

.privacy-text {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.3;
    color: #DDDBD7;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        padding: 40px 120px 0px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 20px 20px 0px;
        gap: 40px;
        max-width: 360px;
        margin: 0 auto;
    }
    
    .content-wrapper {
        flex-direction: column; /* Элементы располагаются вертикально */
        gap: 30px; /* Промежуток между элементами */
    }
    
    .left-content {
        order: 2; /* Контент снизу */
        width: 100%; /* Убедитесь, что ширина 100% */
        gap: 20px;
    }
    
    .right-content {
        order: 1; /* iPhone сверху */
        width: 100%; /* Убедитесь, что ширина 100% */
        display: flex;
        justify-content: center;
        padding: 0px 50px;
    }

    .main-title {
        font-size: 32px;
        width: 100%;
    }

    .description {
        font-size: 16px;
    }
    
    .links {
        gap: 20px;
        flex-direction: row; /* Кнопки всегда на одной высоте */
    }
    
    .link {
        font-size: 16px;
    }

    .iphone-mockup {
        width: 220px;
        height: 279.26px;
    }
    
    .screen-content {
        width: 213.52px;
        height: 263.74px;
        top: 4.55px;
        left: 5.65px;
    }
    
    .copyright {
        font-size: 16px;
    }
    
    .support-content {
        padding: 0px 20px 0px 0px;
    }
    
    .support-title {
        font-size: 28px;
    }
    
    .privacy-title {
        font-size: 28px;
    }
    
    .privacy-subtitle {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 20px 16px 0px;
        max-width: 100%;
    }
    
    .content-wrapper {
        flex-direction: column;
    }
    
    .left-content {
        order: 2; /* Контент снизу */
        width: 100%;
    }
    
    .right-content {
        order: 1; /* iPhone сверху */
        padding: 0px 30px;
    }
    
    .main-title {
        font-size: 28px;
    }
    
    .description {
        font-size: 14px;
    }
    
    .links {
        gap: 20px;
        flex-direction: row; /* Кнопки всегда на одной высоте */
    }
    
    .iphone-mockup {
        width: 200px;
        height: 254px;
    }
    
    .screen-content {
        width: 194px;
        height: 240px;
        top: 4px;
        left: 5px;
    }
    
    .support-content {
        padding: 0px 10px 0px 0px;
    }
    
    .support-title {
        font-size: 24px;
    }
    
    .support-description {
        font-size: 14px;
    }
    
    .privacy-title {
        font-size: 24px;
    }
    
    .privacy-subtitle {
        font-size: 16px;
    }
    
    .privacy-text,
    .privacy-intro {
        font-size: 14px;
    }
}
