/* Policies Page Styles */

/* Root Variables */
:root {
    --pastel-teal: #90e3de;
    --pastel-orange: #ffbd81;
    --pastel-pink: #ffacc2;
    --pastel-green: #83dd9d;
    --white: #ffffff;
    --dark-text: #333333;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --shadow-light: 0 5px 20px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 10px 30px rgba(0, 0, 0, 0.12);
    --shadow-heavy: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Main Layout */
.policies-main {
    min-height: 100vh;
    position: relative;
    background: inherit;
}

/* Hero Section */
.policies-hero {
    background: linear-gradient(135deg, 
        rgba(144, 227, 222, 0.2) 0%, 
        rgba(255, 189, 129, 0.2) 25%, 
        rgba(255, 172, 194, 0.2) 50%, 
        rgba(131, 221, 157, 0.2) 75%, 
        rgba(144, 227, 222, 0.2) 100%);
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
}

.policies-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 70%, var(--pastel-teal) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, var(--pastel-pink) 0%, transparent 50%);
    opacity: 0.1;
    animation: floatBackground 20s ease-in-out infinite;
}

@keyframes floatBackground {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.policies-hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.policies-hero-text {
    animation: slideInLeft 0.8s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.policies-title {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--pastel-teal), var(--pastel-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    line-height: 1.2;
}

.policies-subtitle {
    font-size: 1.25rem;
    color: var(--dark-text);
    line-height: 1.6;
    opacity: 0.9;
}

.policies-hero-image {
    position: relative;
    animation: slideInRight 0.8s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.policies-hero-placeholder {
    width: 100%;
    height: 400px;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

/* Content Section */
.policies-content {
    padding: 80px 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
}

.policies-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Tab Navigation */
.policies-tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
    justify-content: center;
}

.policies-tab {
    background: white;
    border: 2px solid transparent;
    padding: 18px 30px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-text);
    box-shadow: var(--shadow-light);
    position: relative;
    overflow: hidden;
}

.policies-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.policies-tab:hover::before {
    left: 100%;
}

.policies-tab:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.policies-tab.active {
    background: linear-gradient(135deg, var(--pastel-teal), var(--pastel-green));
    color: white;
    border-color: transparent;
}

.tab-icon {
    font-size: 1.5rem;
}

.tab-text {
    font-weight: 600;
}

/* Tab Content */
.policies-tab-content {
    background: white;
    border-radius: 30px;
    padding: 60px;
    box-shadow: var(--shadow-medium);
    min-height: 600px;
    position: relative;
    overflow: hidden;
}

.policies-tab-content::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -20%;
    width: 40%;
    height: 40%;
    background: radial-gradient(circle, var(--pastel-orange) 0%, transparent 70%);
    opacity: 0.05;
}

.policy-content {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.policy-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.policy-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--dark-text);
    position: relative;
    padding-bottom: 20px;
}

.policy-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--pastel-pink), var(--pastel-orange));
    border-radius: 2px;
}

/* Policy Sections */
.policy-section {
    margin-bottom: 50px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.policy-section.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.policy-section h3 {
    font-size: 1.8rem;
    color: var(--dark-text);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.policy-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

/* Policy Highlight Box */
.policy-highlight {
    background: linear-gradient(135deg, 
        rgba(255, 189, 129, 0.1) 0%, 
        rgba(255, 172, 194, 0.1) 100%);
    border-left: 4px solid var(--pastel-orange);
    padding: 25px;
    border-radius: 15px;
    margin: 30px 0;
    display: flex;
    align-items: center;
    gap: 20px;
}

.highlight-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.policy-highlight p {
    margin: 0;
    font-weight: 500;
}

/* Policy Lists */
.policy-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.policy-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    padding: 20px;
    background: var(--glass-bg);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.policy-list li:hover {
    background: white;
    box-shadow: var(--shadow-light);
    transform: translateX(5px);
}

.list-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 3px;
}

.policy-list strong {
    color: var(--dark-text);
    display: block;
    margin-bottom: 5px;
}

/* Numbered List */
.policy-numbered-list {
    counter-reset: policy-counter;
    list-style: none;
    padding: 0;
}

.policy-numbered-list li {
    counter-increment: policy-counter;
    position: relative;
    padding-left: 50px;
    margin-bottom: 15px;
    line-height: 1.6;
}

.policy-numbered-list li::before {
    content: counter(policy-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, var(--pastel-teal), var(--pastel-green));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Policy Warning Box */
.policy-warning {
    background: linear-gradient(135deg, 
        rgba(255, 172, 194, 0.1) 0%, 
        rgba(255, 189, 129, 0.1) 100%);
    border: 2px solid var(--pastel-pink);
    border-radius: 20px;
    padding: 30px;
    margin: 30px 0;
}

.policy-warning p {
    font-weight: 600;
    margin-bottom: 20px;
}

.policy-warning .policy-list {
    margin-bottom: 0;
}

.policy-warning .policy-list li {
    background: white;
    border-left: 3px solid var(--pastel-pink);
}

/* Policy Steps */
.policy-steps {
    display: grid;
    gap: 25px;
    margin: 30px 0;
}

.policy-step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--pastel-orange), var(--pastel-pink));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
    box-shadow: var(--shadow-light);
}

.step-content h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--dark-text);
}

.step-content p {
    margin: 0;
    color: #666;
}

/* Info Grid */
.policy-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.info-card {
    background: linear-gradient(135deg, var(--glass-bg), white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.info-card h4 {
    font-size: 1.4rem;
    color: var(--dark-text);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-card h4::before {
    content: '✨';
    font-size: 1.5rem;
}

.info-card ul {
    list-style: none;
    padding: 0;
}

.info-card li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: #666;
}

.info-card li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--pastel-green);
    font-weight: bold;
}

/* Contact Info Box */
.contact-info {
    background: var(--glass-bg);
    padding: 30px;
    border-radius: 20px;
    margin: 20px 0;
}

.contact-info p {
    margin: 10px 0;
    font-size: 1.1rem;
}

/* Policy CTA Button */
.policy-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--pastel-orange), var(--pastel-pink));
    color: white;
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 30px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
    position: relative;
    overflow: hidden;
}

.policy-cta-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.policy-cta-btn:hover::before {
    width: 300px;
    height: 300px;
}

.policy-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

/* Bottom CTA Section */
.policies-cta-section {
    background: linear-gradient(135deg, 
        rgba(144, 227, 222, 0.1) 0%, 
        rgba(131, 221, 157, 0.1) 100%);
    padding: 100px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.policies-cta-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.policies-cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--dark-text);
}

.policies-cta-content p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-primary,
.cta-secondary {
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.cta-primary {
    background: linear-gradient(135deg, var(--pastel-teal), var(--pastel-green));
    color: white;
    box-shadow: var(--shadow-light);
}

.cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.cta-secondary {
    background: white;
    color: var(--dark-text);
    border: 2px solid var(--pastel-orange);
    box-shadow: var(--shadow-light);
}

.cta-secondary:hover {
    background: var(--pastel-orange);
    color: white;
    transform: translateY(-3px);
}

.cta-decoration {
    position: absolute;
    top: 50%;
    right: -100px;
    width: 400px;
    height: 300px;
    transform: translateY(-50%);
    opacity: 0.5;
    animation: sway 8s ease-in-out infinite;
}

@keyframes sway {
    0%, 100% { transform: translateY(-50%) rotate(-5deg); }
    50% { transform: translateY(-50%) rotate(5deg); }
}

/* Responsive Design */
@media (max-width: 968px) {
    .policies-hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .policies-hero-image {
        order: -1;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .policies-tab-content {
        padding: 40px 30px;
    }
    
    .policy-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .policies-title {
        font-size: 2.2rem;
    }
    
    .policies-subtitle {
        font-size: 1.1rem;
    }
    
    .policies-hero {
        padding: 60px 20px;
    }
    
    .policies-tabs {
        gap: 15px;
    }
    
    .policies-tab {
        padding: 15px 25px;
        font-size: 0.95rem;
    }
    
    .tab-icon {
        font-size: 1.3rem;
    }
    
    .policies-tab-content {
        padding: 40px 20px;
        border-radius: 20px;
    }
    
    .policy-section h3 {
        font-size: 1.5rem;
    }
    
    .policy-section p,
    .contact-info p {
        font-size: 1rem;
    }
    
    .policy-list li {
        padding: 15px;
        gap: 12px;
    }
    
    .list-icon {
        font-size: 1.3rem;
    }
    
    .policy-cta-btn {
        padding: 15px 30px;
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-primary,
    .cta-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .policies-hero-placeholder {
        height: 300px;
    }
    
    .cta-decoration {
        display: none;
    }
}

@media (max-width: 480px) {
    .policies-tabs {
        flex-direction: column;
        align-items: stretch;
    }
    
    .policies-tab {
        width: 100%;
        justify-content: center;
    }
    
    .policy-steps {
        gap: 20px;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .policy-info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Print Styles */
@media print {
    .policies-hero,
    .policies-tabs,
    .policies-cta-section,
    .policy-cta-btn {
        display: none;
    }
    
    .policy-content {
        display: block !important;
        page-break-after: always;
    }
    
    .policies-tab-content {
        box-shadow: none;
        padding: 20px;
    }
    
    .policy-section {
        opacity: 1 !important;
        transform: none !important;
    }
}