/*
    MeteoNav Terms of Use Overlay
    Production-ready hard boot-gate styling
*/

.tos-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    color: #fff;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    padding: 20px;
    box-sizing: border-box;
    overflow: hidden;
}

.tos-container {
    width: 100%;
    max-width: 1000px;
    background: #111;
    border: 1px solid #333;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.tos-header {
    padding: 20px;
    border-bottom: 1px solid #333;
    text-align: center;
}

.tos-header h1 {
    margin: 0;
    font-size: 1.5rem;
    color: #fff;
    letter-spacing: 1px;
}

.tos-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    scrollbar-width: thin;
    scrollbar-color: #444 #111;
}

.tos-content::-webkit-scrollbar {
    width: 8px;
}

.tos-content::-webkit-scrollbar-track {
    background: #111;
}

.tos-content::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}

.tos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.tos-row {
    display: contents;
}

.tos-col-el {
    padding-right: 10px;
    border-right: 1px solid #222;
}

.tos-col-en {
    padding-left: 10px;
    font-style: italic;
    color: #ccc;
}

.tos-footer {
    padding: 20px;
    border-top: 1px solid #333;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.tos-acceptance {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.tos-acceptance input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.tos-button {
    background-color: #fff;
    color: #000;
    border: none;
    padding: 12px 40px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.2s, background-color 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tos-button:disabled {
    background-color: #333;
    color: #666;
    cursor: not-allowed;
    opacity: 0.5;
}

.tos-button:not(:disabled):hover {
    background-color: #ddd;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .tos-grid {
        grid-template-columns: 1fr;
    }
    
    .tos-col-el {
        border-right: none;
        border-bottom: 1px solid #222;
        padding-bottom: 15px;
        margin-bottom: 15px;
    }
    
    .tos-col-en {
        padding-left: 0;
    }
}
