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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

/* Container */
.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* Header */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: 700;
}

.subtitle {
    font-size: 1.1em;
    opacity: 0.9;
}

.back-link {
    display: inline-block;
    margin-top: 15px;
    color: white;
    text-decoration: none;
    font-size: 0.95em;
    opacity: 0.9;
    transition: opacity 0.3s;
}

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

/* Main Content */
main {
    padding: 40px 30px;
}

/* Card Grid (Home Page) */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.card {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 30px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    display: block;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.2);
    border-color: #667eea;
}

.card h2 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.card p {
    color: #6c757d;
    line-height: 1.6;
}

/* Legal Content Pages */
.legal-content section {
    margin-bottom: 40px;
}

.legal-content h2 {
    color: #667eea;
    font-size: 1.8em;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.legal-content h3 {
    color: #495057;
    font-size: 1.3em;
    margin: 20px 0 10px 0;
}

.legal-content p {
    margin-bottom: 15px;
    color: #495057;
    line-height: 1.8;
}

.legal-content ul {
    margin: 15px 0 15px 30px;
    color: #495057;
}

.legal-content li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.legal-content strong {
    color: #333;
}

/* Footer */
footer {
    background: #f8f9fa;
    padding: 20px 30px;
    text-align: center;
    color: #6c757d;
    font-size: 0.9em;
    border-top: 1px solid #e9ecef;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    header h1 {
        font-size: 2em;
    }

    header {
        padding: 30px 20px;
    }

    main {
        padding: 30px 20px;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .legal-content h2 {
        font-size: 1.5em;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.6em;
    }

    .legal-content h2 {
        font-size: 1.3em;
    }

    .legal-content h3 {
        font-size: 1.1em;
    }
}
