/* Legal Pages Styles (Terms, Privacy, Refund) */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    /* Match Homepage Hero Gradient */
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding: 40px 20px;
}

/* Container */
.container,
.policy-container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    /* Softer shadow */
    overflow: hidden;
    margin-top: 40px;
    margin-bottom: 40px;
}

/* Header */
.header,
.policy-header {
    background: white;
    color: #333;
    padding: 60px 40px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.header h1,
.policy-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
    /* Gradient Text matching Homepage Logo */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #667eea;
    /* Fallback */
}

.header p,
.policy-header p,
.last-updated {
    font-size: 1.1rem;
    color: #666;
    font-style: normal;
}

/* Content */
.content,
.policy-section {
    padding: 40px;
}

.policy-section {
    padding: 0 40px 30px 40px;
    margin-bottom: 0;
}

.policy-section:first-of-type {
    padding-top: 40px;
}

/* Headings */
h2 {
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
    /* Softer underline */
}

h3 {
    color: #333;
    font-size: 1.3rem;
    margin-top: 25px;
    margin-bottom: 15px;
    font-weight: 600;
}

/* Text */
p {
    margin-bottom: 15px;
    font-size: 1.05rem;
    color: #555;
}

ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

li {
    margin-bottom: 8px;
    color: #555;
    font-size: 1.05rem;
}

/* Highlight Boxes */
.highlight-box {
    background: #f8f9ff;
    border-left: 4px solid #667eea;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
}

.highlight-box.warning,
.warning-box {
    background: #fff8f0;
    border-left: 4px solid #ff9800;
}

.highlight-box.success {
    background: #f0fff4;
    border-left: 4px solid #10b981;
}

.highlight-box.danger,
.danger-box {
    background: #fef2f2;
    border-left: 4px solid #dc2626;
}

.highlight-box p {
    margin-bottom: 10px;
}

.highlight-box p:last-child {
    margin-bottom: 0;
}

/* Lists */
.policy-list {
    list-style: none;
    padding: 0;
    margin-left: 0;
}

.policy-list li {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 0;
}

.policy-list li:last-child {
    border-bottom: none;
}

.policy-list li::before {
    content: "✓";
    color: #10b981;
    font-weight: bold;
    margin-right: 10px;
    font-size: 1.2rem;
}

.warning-list {
    list-style: none;
    padding: 0;
    margin-left: 0;
}

.warning-list li {
    padding: 10px 0;
    color: #d97706;
    margin-bottom: 0;
}

.warning-list li::before {
    content: "⚠";
    margin-right: 10px;
    font-size: 1.2rem;
}

/* Contact Box */
.contact-box,
.contact-info {
    background: #f8f9fa;
    color: #333;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    margin-top: 40px;
    margin-bottom: 20px;
    border: 1px solid #e5e7eb;
}

.contact-box h3,
.contact-info h3 {
    color: #333;
    margin-bottom: 15px;
    margin-top: 0;
}

.contact-box p,
.contact-info p {
    color: #666;
    margin-bottom: 20px;
}

.contact-box a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(102, 126, 234, 0.25);
}

.contact-box a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(102, 126, 234, 0.35);
}

/* Back Link */
.back-link {
    display: block;
    text-align: center;
    margin-top: 30px;
    padding-bottom: 40px;
}

.back-link a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    display: inline-block;
    margin: 0 10px;
}

.back-link a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {

    .header,
    .policy-header {
        padding: 40px 20px;
    }

    .header h1,
    .policy-header h1 {
        font-size: 2rem;
    }

    .content,
    .policy-section {
        padding: 30px 20px;
    }

    h2 {
        font-size: 1.5rem;
    }
}