/* cgu.css - Styles for Terms & Conditions pages */

/* Hero Header */
.cgu-hero {
    background: #2c3e50;
    color: white;
    padding: 2.5rem 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.cgu-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
}

.cgu-hero h2 {
    font-size: 1.9rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: white;
    letter-spacing: 0.5px;
}

.cgu-hero .cgu-subtitle {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.75);
    margin: 0;
}

.cgu-hero .cgu-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.82rem;
    margin-top: 1rem;
    color: rgba(255,255,255,0.9);
}

/* Legal Info Grid */
.cgu-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.cgu-info-card {
    background: white;
    border: 1px solid #e8ecef;
    border-radius: 8px;
    padding: 1rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.cgu-info-card .cgu-info-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #999;
    font-weight: 600;
}

.cgu-info-card .cgu-info-value {
    font-size: 0.92rem;
    color: #333;
    font-weight: 500;
}

/* Table of Contents */
.cgu-toc {
    background: #f8f9fa;
    border-left: 4px solid #4a90e2;
    border-radius: 0 8px 8px 0;
    padding: 1.2rem 1.5rem;
    margin-bottom: 2rem;
}

.cgu-toc h4 {
    margin: 0 0 0.8rem 0;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #4a90e2;
    font-weight: 700;
}

.cgu-toc ol {
    margin: 0;
    padding-left: 1.2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.3rem 1.5rem;
}

.cgu-toc ol li a {
    color: #555;
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s;
}

.cgu-toc ol li a:hover {
    color: #4a90e2;
}

/* Content Sections */
.cgu-section {
    background: white;
    border-radius: 8px;
    border: 1px solid #e8ecef;
    margin-bottom: 1.2rem;
    overflow: hidden;
}

.cgu-section-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e8ecef;
    cursor: pointer;
}

.cgu-section-header h3 {
    margin: 0;
    font-size: 1rem;
    color: #2c3e50;
    font-weight: 700;
    flex: 1;
}

.cgu-section-icon {
    font-size: 1.2rem;
    min-width: 1.5rem;
    text-align: center;
}

.cgu-section-body {
    padding: 1.2rem 1.5rem;
}

.cgu-section-body h4 {
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #4a90e2;
    font-weight: 700;
    margin: 1.2rem 0 0.5rem 0;
    padding-bottom: 0.3rem;
    border-bottom: 1px dashed #dce6f7;
}

.cgu-section-body h4:first-child {
    margin-top: 0;
}

.cgu-section-body p {
    color: #555;
    line-height: 1.7;
    margin: 0.5rem 0;
    font-size: 0.93rem;
}

.cgu-section-body ul {
    margin: 0.5rem 0;
    padding-left: 1.4rem;
}

.cgu-section-body ul li {
    color: #555;
    font-size: 0.93rem;
    line-height: 1.7;
    margin-bottom: 0.2rem;
    position: relative;
}

.cgu-section-body ul li::marker {
    color: #4a90e2;
}

/* Accent colours per section */
.cgu-section.green .cgu-section-header { border-left: 4px solid #27ae60; }
.cgu-section.blue .cgu-section-header  { border-left: 4px solid #4a90e2; }
.cgu-section.red .cgu-section-header   { border-left: 4px solid #e74c3c; }
.cgu-section.orange .cgu-section-header{ border-left: 4px solid #e67e22; }
.cgu-section.purple .cgu-section-header{ border-left: 4px solid #8e44ad; }
.cgu-section.teal .cgu-section-header  { border-left: 4px solid #16a085; }

/* Forbidden content box */
.cgu-forbidden {
    background: #fdf2f2;
    border: 1px solid #f5c6c6;
    border-radius: 6px;
    padding: 0.8rem 1rem;
    margin-top: 0.5rem;
}

.cgu-forbidden ul li::marker {
    color: #e74c3c;
}

/* Contact box */
.cgu-contact-box {
    background: linear-gradient(135deg, #f0f7ff, #e8f4fd);
    border: 1px solid #bee3f8;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-top: 0.5rem;
}

.cgu-contact-box a {
    color: #4a90e2;
    font-weight: 600;
    text-decoration: none;
}

.cgu-contact-box a:hover {
    text-decoration: underline;
}

/* Footer note */
.cgu-footer-note {
    background: #2c3e50;
    color: rgba(255,255,255,0.85);
    border-radius: 8px;
    padding: 1.2rem 1.5rem;
    margin-top: 2rem;
    text-align: center;
    font-size: 0.88rem;
    line-height: 1.6;
}

.cgu-footer-note strong {
    color: white;
    display: block;
    margin-top: 0.5rem;
    font-size: 0.82rem;
}

/* Back button */
.cgu-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #4a90e2;
    text-decoration: none;
    font-size: 0.88rem;
    margin-bottom: 1.2rem;
    transition: color 0.2s;
}

.cgu-back-btn:hover {
    color: #357abd;
}

@media (max-width: 768px) {
    .cgu-info-grid { grid-template-columns: 1fr 1fr; }
    .cgu-toc ol { grid-template-columns: 1fr; }
    .cgu-hero h2 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
    .cgu-info-grid { grid-template-columns: 1fr; }
    .cgu-hero { padding: 1.5rem 1rem; }
    .cgu-section-body { padding: 1rem; }
}
