/* Terms of Service Popup Styles */

:root {
    /* === TERMS OF SERVICE UID VARIABLES === */
    
    /* Overlay Configuration */
    --terms-overlay-background-color: rgba(0, 0, 0, 0.85);
    --terms-overlay-blur: 12px;
    --terms-overlay-transition-duration: 400ms;
    --terms-overlay-z-index: 10000;
    --terms-overlay-perspective: 1000px;
    
    /* Container Configuration */
    --terms-container-max-width-vw: 90vw;
    --terms-container-max-height-vh: 85vh;
    --terms-container-max-width-px: 1000px;
    --terms-container-margin-top: 0px;
    --terms-container-entrance-transition: 500ms;
    --terms-container-entrance-scale: 0.8;
    --terms-container-entrance-rotate-x: 15deg;
    --terms-container-entrance-rotate-y: 5deg;
    --terms-container-entrance-translate-z: -100px;
    
    /* Card Configuration */
    --terms-card-background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.98) 100%);
    --terms-card-backdrop-filter: blur(20px);
    --terms-card-border: 2px solid rgba(148, 163, 184, 0.2);
    --terms-card-main-border-color: linear-gradient(90deg, #2563eb 0%, #7c3aed 50%, #06b6d4 100%);
    --terms-card-border-radius: 24px;
    --terms-card-box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.05);
    --terms-card-transform-style: preserve-3d;
    --terms-card-perspective: 1000px;
    --terms-card-shimmer-duration: 4000ms;
    
    /* Close Button Configuration */
    --terms-close-size: 50px;
    --terms-close-background: rgba(0, 0, 0, 0.3);
    --terms-close-background-hover: rgba(0, 0, 0, 0.6);
    --terms-close-border: 2px solid rgba(255, 255, 255, 0.2);
    --terms-close-border-radius: 50%;
    --terms-close-color: #ffffff;
    --terms-close-font-size: 20px;
    --terms-close-font-weight: 700;
    --terms-close-transition: 300ms;
    --terms-close-hover-scale: 1.1;
    --terms-close-hover-rotate: 90deg;
    --terms-close-hover-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    --terms-close-position-top: 20px;
    --terms-close-position-right: 20px;
    --terms-close-z-index: 1000;
    
    /* Header Configuration */
    --terms-header-padding-y: 45px;
    --terms-header-padding-x: 30px;
    --terms-header-padding-bottom: 30px;
    --terms-header-border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    
    /* Social Configuration */
    --terms-social-position-top: 20px;
    --terms-social-position-left: 20px;
    --terms-social-gap: 12px;
    --terms-social-size: 40px;
    --terms-social-background: rgba(255, 255, 255, 0.8);
    --terms-social-background-hover: rgba(59, 130, 246, 0.1);
    --terms-social-border: 2px solid rgba(148, 163, 184, 0.2);
    --terms-social-border-hover: 2px solid rgba(59, 130, 246, 0.3);
    --terms-social-border-radius: 12px;
    --terms-social-transition: 300ms;
    --terms-social-hover-translate-y: -3px;
    --terms-social-hover-scale: 1.1;
    --terms-social-hover-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    --terms-social-icon-size: 20px;
    --terms-social-icon-border-radius: 6px;
    
    /* Icon 3D Configuration */
    --terms-icon-3d-size: 80px;
    --terms-icon-3d-background: linear-gradient(135deg, rgba(59, 130, 246, 0.8) 0%, rgba(147, 51, 234, 0.8) 100%);
    --terms-icon-3d-border: 2px solid rgba(255, 255, 255, 0.3);
    --terms-icon-3d-border-radius: 20px;
    --terms-icon-3d-font-size: 32px;
    --terms-icon-3d-margin-bottom: 20px;
    --terms-icon-3d-box-shadow: 0 15px 40px rgba(59, 130, 246, 0.4), 0 0 0 3px rgba(255, 255, 255, 0.1), inset 0 2px 0 rgba(255, 255, 255, 0.2);
    --terms-icon-3d-perspective: 500px;
    --terms-icon-3d-rotate-x: 15deg;
    --terms-icon-3d-rotate-y: -5deg;
    --terms-icon-3d-float-duration: 6000ms;
    --terms-icon-3d-float-rotate-range: 15deg;
    --terms-icon-3d-float-translate-y: 5px;
    
    /* Typography Configuration */
    --terms-title-font-size: 28px;
    --terms-title-font-weight: 800;
    --terms-title-color: #ffffff;
    --terms-title-margin-bottom: 12px;
    --terms-title-text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    
    --terms-subtitle-font-size: 16px;
    --terms-subtitle-line-height: 1.6;
    --terms-subtitle-color: rgba(255, 255, 255, 0.8);
    --terms-subtitle-max-width: 450px;
    --terms-subtitle-margin: 0 auto;
    
    /* Content Configuration */
    --terms-content-padding-y: 30px;
    --terms-content-padding-x: 40px;
    --terms-content-max-height: none;
    --terms-content-overflow-y: visible;
    
    /* Grid Configuration */
    --terms-grid-columns: 2;
    --terms-grid-gap: 20px;
    --terms-grid-margin-bottom: 20px;
    
    /* Card Tile Configuration */
    --terms-card-background-color: rgba(30, 41, 59, 0.6);
    --terms-card-background-hover: rgba(255, 255, 255, 0.95);
    --terms-card-border-color: #3b82f6;
    --terms-card-border-hover: #2563eb;
    --terms-card-border-width: 2px;
    --terms-card-border-left-width: 4px;
    --terms-card-border-left-color: #2563eb;
    --terms-card-border-radius: 14px;
    --terms-card-padding: 16px;
    --terms-card-backdrop-filter: blur(10px);
    --terms-card-transition-duration: 400ms;
    --terms-card-hover-translate-y: -2px;
    --terms-card-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
    --terms-card-hover-shadow: 0 6px 20px rgba(37, 99, 235, 0.2);
    --terms-card-expand-scale: 2;
    --terms-card-expand-z-index: 100;
    --terms-card-expand-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    --terms-card-expand-background: rgba(255, 255, 255, 0.95);
    --terms-card-expand-backdrop-filter: blur(10px);
    
    /* Card Icon Configuration */
    --terms-card-icon-size: 50px;
    --terms-card-icon-background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    --terms-card-icon-border: 2px solid rgba(59, 130, 246, 0.2);
    --terms-card-icon-border-radius: 14px;
    --terms-card-icon-font-size: 20px;
    --terms-card-icon-margin-bottom: 10px;
    --terms-card-icon-box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
    
    /* Card Typography */
    --terms-card-title-font-size: 15px;
    --terms-card-title-font-weight: 700;
    --terms-card-title-color: #f1f5f9;
    --terms-card-title-hover-color: #1e293b;
    --terms-card-title-margin-bottom: 6px;
    
    --terms-card-text-font-size: 13px;
    --terms-card-text-line-height: 1.5;
    --terms-card-text-color: #cbd5e1;
    --terms-card-text-hover-color: #334155;
    
    /* Expanded Content Configuration */
    --terms-expanded-padding: 8px;
    --terms-expanded-icon-size: 40px;
    --terms-expanded-icon-border-radius: 12px;
    --terms-expanded-icon-margin-bottom: 8px;
    --terms-expanded-icon-font-size: 18px;
    
    --terms-expanded-title-font-size: 14px;
    --terms-expanded-title-font-weight: 700;
    --terms-expanded-title-color: #1e293b;
    --terms-expanded-title-margin-bottom: 6px;
    
    --terms-expanded-policy-font-size: 9px;
    --terms-expanded-policy-line-height: 1.3;
    --terms-expanded-policy-color: #334155;
    --terms-expanded-policy-padding-x: 4px;
    
    /* Summary Configuration */
    --terms-summary-background: rgba(37, 99, 235, 0.08);
    --terms-summary-border: 2px solid #3b82f6;
    --terms-summary-border-radius: 14px;
    --terms-summary-padding: 16px;
    --terms-summary-backdrop-filter: blur(10px);
    --terms-summary-text-font-size: 14px;
    --terms-summary-text-line-height: 1.6;
    --terms-summary-text-color: #f1f5f9;
    --terms-summary-text-margin-bottom: 12px;
    --terms-summary-updated-font-size: 13px;
    --terms-summary-updated-color: #cbd5e1;
    --terms-summary-updated-margin: 0;
    
    /* Animation Configuration */
    --terms-easing-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --terms-easing-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --terms-easing-spring: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.terms-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--terms-overlay-background-color);
    backdrop-filter: blur(var(--terms-overlay-blur));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--terms-overlay-z-index);
    opacity: 0;
    visibility: hidden;
    transition: all var(--terms-overlay-transition-duration) var(--terms-easing-smooth);
    perspective: var(--terms-overlay-perspective);
}

.terms-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Main Container */
.terms-popup-container {
    max-width: var(--terms-container-max-width-vw);
    max-height: var(--terms-container-max-height-vh);
    width: 100%;
    max-width: var(--terms-container-max-width-px);
    margin: var(--terms-container-margin-top) auto;
    transform: translateZ(var(--terms-container-entrance-translate-z)) rotateX(var(--terms-container-entrance-rotate-x)) rotateY(var(--terms-container-entrance-rotate-y)) scale(var(--terms-container-entrance-scale));
    transition: all var(--terms-container-entrance-transition) var(--terms-easing-bounce);
    transform-style: preserve-3d;
}

.terms-popup-overlay.active .terms-popup-container {
    transform: translateZ(0) rotateX(0deg) rotateY(0deg) scale(1);
}

/* 3D Wrapper */
.terms-popup-3d-wrapper {
    transform-style: preserve-3d;
    position: relative;
}

/* Main Card */
.terms-popup-card {
    background: var(--terms-card-background);
    backdrop-filter: var(--terms-card-backdrop-filter);
    border: var(--terms-card-border);
    border-radius: var(--terms-card-border-radius);
    box-shadow: var(--terms-card-box-shadow);
    position: relative;
    overflow: visible;
    height: auto;
    transform-style: var(--terms-card-transform-style);
    perspective: var(--terms-card-perspective);
}

.terms-popup-card::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: var(--terms-card-main-border-color);
    border-radius: calc(var(--terms-card-border-radius) + 4px);
    z-index: -1;
}

.terms-popup-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.03) 0%, transparent 70%);
    pointer-events: none;
    animation: shimmer var(--terms-card-shimmer-duration) ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.3; transform: rotate(0deg); }
    50% { opacity: 0.7; transform: rotate(180deg); }
}

/* Close Button */
.terms-popup-close {
    position: absolute;
    top: var(--terms-close-position-top);
    right: var(--terms-close-position-right);
    width: var(--terms-close-size);
    height: var(--terms-close-size);
    border: var(--terms-close-border);
    background: var(--terms-close-background) !important;
    border-radius: var(--terms-close-border-radius);
    color: var(--terms-close-color);
    font-size: var(--terms-close-font-size);
    font-weight: var(--terms-close-font-weight);
    cursor: pointer;
    z-index: var(--terms-close-z-index);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--terms-close-transition) var(--terms-easing-smooth);
}

.terms-popup-close:hover {
    background: var(--terms-close-background-hover) !important;
    transform: scale(var(--terms-close-hover-scale)) rotate(var(--terms-close-hover-rotate));
    box-shadow: var(--terms-close-hover-shadow);
}

.close-x {
    line-height: 1;
    transform: rotate(0deg);
    transition: transform var(--terms-close-transition) ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Header Section */
.terms-popup-header {
    text-align: center;
    padding: var(--terms-header-padding-y) var(--terms-header-padding-x) var(--terms-header-padding-bottom);
    position: relative;
    border-bottom: var(--terms-header-border-bottom);
}

/* Social Corner */
.terms-popup-social-corner {
    position: absolute;
    top: var(--terms-social-position-top);
    left: var(--terms-social-position-left);
    z-index: 10;
}

.terms-social-links {
    display: flex;
    gap: var(--terms-social-gap);
}

.terms-social-link {
    width: var(--terms-social-size);
    height: var(--terms-social-size);
    background: var(--terms-social-background);
    border: var(--terms-social-border);
    border-radius: var(--terms-social-border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--terms-social-transition) var(--terms-easing-smooth);
    backdrop-filter: blur(10px);
}

.terms-social-link:hover {
    transform: translateY(var(--terms-social-hover-translate-y)) scale(var(--terms-social-hover-scale));
    box-shadow: var(--terms-social-hover-shadow);
    background: var(--terms-social-background-hover);
    border: var(--terms-social-border-hover);
}

.terms-social-icon {
    width: var(--terms-social-icon-size);
    height: var(--terms-social-icon-size);
    object-fit: contain;
    border-radius: var(--terms-social-icon-border-radius);
}

/* 3D Icon */
.terms-popup-icon-container {
    margin-bottom: var(--terms-icon-3d-margin-bottom);
}

.terms-popup-icon-3d {
    width: var(--terms-icon-3d-size);
    height: var(--terms-icon-3d-size);
    background: var(--terms-icon-3d-background);
    border: var(--terms-icon-3d-border);
    border-radius: var(--terms-icon-3d-border-radius);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--terms-icon-3d-font-size);
    box-shadow: var(--terms-icon-3d-box-shadow);
    transform: perspective(var(--terms-icon-3d-perspective)) rotateX(var(--terms-icon-3d-rotate-x)) rotateY(var(--terms-icon-3d-rotate-y));
    animation: float var(--terms-icon-3d-float-duration) ease-in-out infinite, iconGlow 3s ease-in-out infinite alternate;
}

@keyframes float {
    0%, 100% { 
        transform: perspective(var(--terms-icon-3d-perspective)) 
                  rotateX(var(--terms-icon-3d-rotate-x)) 
                  rotateY(calc(var(--terms-icon-3d-rotate-y) - var(--terms-icon-3d-float-rotate-range))) 
                  translateY(calc(-1 * var(--terms-icon-3d-float-translate-y))); 
    }
    50% { 
        transform: perspective(var(--terms-icon-3d-perspective)) 
                  rotateX(var(--terms-icon-3d-rotate-x)) 
                  rotateY(calc(var(--terms-icon-3d-rotate-y) + var(--terms-icon-3d-float-rotate-range))) 
                  translateY(calc(-2 * var(--terms-icon-3d-float-translate-y))); 
    }
}

@keyframes iconGlow {
    0% { 
        box-shadow: 0 15px 40px rgba(59, 130, 246, 0.4), 0 0 0 3px rgba(255, 255, 255, 0.1), inset 0 2px 0 rgba(255, 255, 255, 0.2);
    }
    100% { 
        box-shadow: 0 15px 40px rgba(59, 130, 246, 0.6), 0 0 0 3px rgba(255, 255, 255, 0.2), inset 0 2px 0 rgba(255, 255, 255, 0.3), 0 0 20px rgba(59, 130, 246, 0.3);
    }
}

/* Typography */
.terms-popup-title {
    font-size: var(--terms-title-font-size);
    font-weight: var(--terms-title-font-weight);
    color: var(--terms-title-color);
    margin-bottom: var(--terms-title-margin-bottom);
    text-shadow: var(--terms-title-text-shadow);
}

.terms-popup-subtitle {
    font-size: var(--terms-subtitle-font-size);
    color: var(--terms-subtitle-color);
    line-height: var(--terms-subtitle-line-height);
    max-width: var(--terms-subtitle-max-width);
    margin: var(--terms-subtitle-margin);
}

/* Content Section */
.terms-popup-content {
    padding: var(--terms-content-padding-y) var(--terms-content-padding-x);
    max-height: var(--terms-content-max-height);
    overflow-y: var(--terms-content-overflow-y);
}

/* Service Cards Grid */
.terms-service-grid {
    display: grid;
    grid-template-columns: repeat(var(--terms-grid-columns), 1fr);
    gap: var(--terms-grid-gap);
    margin-bottom: var(--terms-grid-margin-bottom);
}

.terms-service-card {
    background: var(--terms-card-background-color);
    backdrop-filter: var(--terms-card-backdrop-filter);
    border: var(--terms-card-border-width) solid var(--terms-card-border-color);
    border-left: var(--terms-card-border-left-width) solid var(--terms-card-border-left-color);
    border-radius: var(--terms-card-border-radius);
    padding: var(--terms-card-padding);
    box-shadow: var(--terms-card-shadow);
    transition: all var(--terms-card-transition-duration) var(--terms-easing-bounce);
    text-align: center;
    position: relative;
    cursor: pointer;
}

.terms-service-card:hover:not(.expanded) {
    background: var(--terms-card-background-hover);
    transform: translateY(var(--terms-card-hover-translate-y));
    border: var(--terms-card-border-width) solid var(--terms-card-border-hover);
    box-shadow: var(--terms-card-hover-shadow);
}

.terms-card-icon {
    width: var(--terms-card-icon-size);
    height: var(--terms-card-icon-size);
    background: var(--terms-card-icon-background);
    border: var(--terms-card-icon-border);
    border-radius: var(--terms-card-icon-border-radius);
    margin: 0 auto var(--terms-card-icon-margin-bottom);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--terms-card-icon-font-size);
    box-shadow: var(--terms-card-icon-box-shadow);
}

.terms-card-title {
    font-size: var(--terms-card-title-font-size);
    font-weight: var(--terms-card-title-font-weight);
    color: var(--terms-card-title-color);
    margin-bottom: var(--terms-card-title-margin-bottom);
    transition: color var(--terms-social-transition) ease;
}

.terms-service-card:hover:not(.expanded) .terms-card-title {
    color: var(--terms-card-title-hover-color);
}

.terms-card-text {
    font-size: var(--terms-card-text-font-size);
    line-height: var(--terms-card-text-line-height);
    color: var(--terms-card-text-color);
    transition: color var(--terms-social-transition) ease;
}

.terms-service-card:hover:not(.expanded) .terms-card-text {
    color: var(--terms-card-text-hover-color);
}

/* Tile Expansion Styles */
.terms-service-card.expanded {
    transform: scale(var(--terms-card-expand-scale));
    z-index: var(--terms-card-expand-z-index);
    box-shadow: var(--terms-card-expand-shadow);
    background: var(--terms-card-expand-background) !important;
    backdrop-filter: var(--terms-card-expand-backdrop-filter);
}

.terms-service-card.expanded .terms-card-title {
    color: var(--terms-expanded-title-color) !important;
}

.terms-service-card.expanded .terms-card-text {
    color: var(--terms-expanded-policy-color) !important;
}

/* Expanded Content Styling */
.terms-card-expanded-content {
    text-align: center;
    padding: var(--terms-expanded-padding);
}

.terms-expanded-icon {
    width: var(--terms-expanded-icon-size);
    height: var(--terms-expanded-icon-size);
    background: var(--terms-card-icon-background);
    border-radius: var(--terms-expanded-icon-border-radius);
    margin: 0 auto var(--terms-expanded-icon-margin-bottom);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--terms-expanded-icon-font-size);
    box-shadow: var(--terms-card-icon-box-shadow);
}

.terms-expanded-title {
    font-size: var(--terms-expanded-title-font-size);
    font-weight: var(--terms-expanded-title-font-weight);
    color: var(--terms-expanded-title-color);
    margin-bottom: var(--terms-expanded-title-margin-bottom);
}

.terms-expanded-details {
    text-align: left;
}

.terms-expanded-policy {
    font-size: var(--terms-expanded-policy-font-size);
    color: var(--terms-expanded-policy-color);
    margin: 0;
    line-height: var(--terms-expanded-policy-line-height);
    text-align: justify;
    padding: 0 var(--terms-expanded-policy-padding-x);
}

/* Transform origins for corner-to-center expansion */
/* Service Agreement (top-left) - expand from top-left corner */
#terms-layout-card-agreement.expanded {
    transform-origin: top left;
    transform: scale(var(--terms-card-expand-scale));
}

/* User Responsibilities (top-right) - expand from top-right corner */
#terms-layout-card-responsibilities.expanded {
    transform-origin: top right;
    transform: scale(var(--terms-card-expand-scale));
}

/* Intellectual Property (bottom-left) - expand from bottom-left corner */
#terms-layout-card-property.expanded {
    transform-origin: bottom left;
    transform: scale(var(--terms-card-expand-scale));
}

/* Limitation of Liability (bottom-right) - expand from bottom-right corner */
#terms-layout-card-liability.expanded {
    transform-origin: bottom right;
    transform: scale(var(--terms-card-expand-scale));
}

/* Ensure all cards have consistent dark background */
.terms-service-card {
    background: var(--terms-card-background-color) !important;
}

/* Force specific dark background for liability card - only when not expanded */
#terms-layout-card-liability:not(.expanded) {
    background: rgba(30, 41, 59, 0.6) !important;
}

/* Additional specificity for liability card background - only when not expanded */
div#terms-layout-card-liability.terms-service-card:not(.expanded) {
    background-color: rgba(30, 41, 59, 0.6) !important;
    background-image: none !important;
}

/* Ensure liability card has white background when expanded */
#terms-layout-card-liability.expanded {
    background: var(--terms-card-expand-background) !important;
}

/* Summary Section */
.terms-summary {
    background: var(--terms-summary-background);
    backdrop-filter: var(--terms-summary-backdrop-filter);
    border: var(--terms-summary-border);
    border-radius: var(--terms-summary-border-radius);
    padding: var(--terms-summary-padding);
    text-align: center;
}

.terms-summary-text {
    font-size: var(--terms-summary-text-font-size);
    line-height: var(--terms-summary-text-line-height);
    color: var(--terms-summary-text-color);
    margin-bottom: var(--terms-summary-text-margin-bottom);
}

.terms-updated-inline {
    font-size: var(--terms-summary-updated-font-size);
    color: var(--terms-summary-updated-color);
    margin: var(--terms-summary-updated-margin);
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .terms-popup-container {
        max-width: 95vw;
        max-height: 95vh;
    }
    
    .terms-popup-header {
        padding: 40px 20px 30px;
    }
    
    .terms-popup-title {
        font-size: 24px;
    }
    
    .terms-popup-subtitle {
        font-size: 16px;
    }
    
    .terms-popup-content {
        padding: 20px;
    }
    
    .terms-service-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .terms-service-card {
        padding: 16px;
    }
    
    .terms-card-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
        margin-bottom: 10px;
    }
    
    .terms-card-title {
        font-size: 14px;
    }
    
    .terms-card-text {
        font-size: 13px;
    }
    
    .terms-summary {
        padding: 16px;
    }
    
    .terms-summary-text {
        font-size: 14px;
    }
    
    .terms-popup-icon-3d {
        width: 80px;
        height: 80px;
        font-size: 36px;
    }
    
    .terms-social-links {
        gap: 8px;
    }
    
    .terms-social-link {
        width: 32px;
        height: 32px;
    }
    
    .terms-social-icon {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 480px) {
    .terms-popup-header {
        padding: 30px 16px 20px;
    }
    
    .terms-popup-content {
        padding: 16px;
    }
    
    .terms-service-grid {
        gap: 12px;
    }
    
    .terms-service-card {
        padding: 12px;
    }
    
    .terms-card-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
        margin-bottom: 8px;
    }
    
    .terms-summary {
        padding: 12px;
    }
    
    .terms-popup-close {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}