/* ==========================================
   LEGAL PAGES STYLES (Privacy Policy & Terms)
   ========================================== */

/* Legal Header */
.legal-header {
    background: linear-gradient(135deg, #1e90ff, #00bfff);
    color: white;
    padding: 120px 20px 60px;
    margin-top: 80px;
    text-align: center;
}

.legal-header-content {
    max-width: 1200px;
    margin: 0 auto;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    opacity: 0.9;
}

.back-link:hover {
    opacity: 1;
    transform: translateX(-5px);
}

.legal-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.header-subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 30px;
}

/* Legal Navigation */
.legal-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.legal-nav-link {
    padding: 12px 30px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.legal-nav-link:hover,
.legal-nav-link.active {
    background: white;
    color: #1e90ff;
    border-color: white;
}

/* Legal Content Container */
.legal-content {
    padding: 60px 20px;
    background: #f8fcff;
}

.legal-container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(30, 144, 255, 0.1);
    padding: 50px;
}

/* Section Styling */
.legal-section {
    margin-bottom: 50px;
}

.legal-section:last-child {
    margin-bottom: 0;
}

.legal-section h2 {
    font-size: 2rem;
    color: #1e90ff;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #1e90ff;
}

.legal-section h3 {
    font-size: 1.3rem;
    color: #222;
    margin-top: 25px;
    margin-bottom: 15px;
}

.legal-section p {
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
}

.legal-section ul,
.legal-section ol {
    margin-left: 25px;
    line-height: 1.8;
    color: #555;
}

.legal-section li {
    margin-bottom: 10px;
}

/* Main Title */
.main-title {
    font-size: 2.2rem;
    color: #222;
    margin-bottom: 20px;
    line-height: 1.3;
}

/* Meta Information */
.meta-info {
    background: #f0f8ff;
    border-left: 4px solid #1e90ff;
    padding: 20px;
    margin: 20px 0;
    border-radius: 5px;
}

.meta-info p {
    margin-bottom: 8px;
    color: #333;
}

.meta-info p:last-child {
    margin-bottom: 0;
}

/* POPIA Statement */
.popia-statement {
    background: linear-gradient(135deg, #1e90ff, #00bfff);
    color: white;
    padding: 30px;
    border-radius: 10px;
    margin: 30px 0;
}

.popia-statement h3 {
    color: white;
    margin-top: 0;
    font-size: 1.5rem;
}

.popia-statement p {
    color: white;
    margin-bottom: 0;
}

/* Table of Contents */
.toc-section {
    background: #f8fcff;
    padding: 30px;
    border-radius: 10px;
    border: 2px solid #e0f2ff;
}

.toc-list {
    list-style: none;
    counter-reset: toc-counter;
    margin-left: 0;
}

.toc-list li {
    counter-increment: toc-counter;
    margin-bottom: 12px;
}

.toc-list li::before {
    content: counter(toc-counter) ". ";
    color: #1e90ff;
    font-weight: 600;
    margin-right: 8px;
}

.toc-list a {
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
}

.toc-list a:hover {
    color: #1e90ff;
    padding-left: 5px;
}

/* Info Cards */
.info-card {
    background: #f8fcff;
    border: 2px solid #e0f2ff;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
}

.info-card h3 {
    color: #1e90ff;
    margin-top: 0;
    font-size: 1.2rem;
}

.info-list {
    list-style: none;
    margin-left: 0;
}

.info-list li {
    padding: 8px 0;
    border-bottom: 1px solid #e0f2ff;
}

.info-list li:last-child {
    border-bottom: none;
}

/* Legal Basis Grid */
.legal-basis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.basis-card {
    background: #f8fcff;
    border: 2px solid #e0f2ff;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.basis-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(30, 144, 255, 0.15);
    border-color: #1e90ff;
}

.basis-card i {
    font-size: 2.5rem;
    color: #1e90ff;
    margin-bottom: 15px;
}

.basis-card h3 {
    color: #222;
    margin: 15px 0;
    font-size: 1.1rem;
}

.basis-card p {
    color: #666;
    margin: 0;
    font-size: 0.95rem;
}

/* Data Category */
.data-category {
    background: #ffffff;
    border-left: 4px solid #1e90ff;
    padding: 25px;
    margin-bottom: 25px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.data-category h3 {
    color: #1e90ff;
    margin-top: 0;
}

.data-category ul {
    margin-left: 0;
    list-style: none;
}

.data-category li {
    padding: 8px 0;
}

/* Note Box */
.note-box {
    background: #fff9e6;
    border: 2px solid #ffd700;
    border-radius: 8px;
    padding: 20px;
    margin-top: 15px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.note-box i {
    color: #ffa500;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.note-box p {
    margin: 0;
    color: #666;
}

/* Usage Grid */
.usage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.usage-card {
    background: #f8fcff;
    border: 2px solid #e0f2ff;
    border-radius: 10px;
    padding: 25px;
    transition: all 0.3s ease;
}

.usage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(30, 144, 255, 0.15);
    border-color: #1e90ff;
}

.usage-card i {
    font-size: 2rem;
    color: #1e90ff;
    margin-bottom: 15px;
}

.usage-card h3 {
    color: #222;
    margin: 15px 0;
    font-size: 1.1rem;
}

.usage-card p {
    color: #666;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Sharing List */
.sharing-list {
    margin-top: 30px;
}

.sharing-item {
    background: #f8fcff;
    border-left: 4px solid #1e90ff;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 5px;
}

.sharing-item h3 {
    color: #1e90ff;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sharing-item h3 i {
    font-size: 1.3rem;
}

.sharing-item p {
    margin: 0;
    color: #666;
}

/* Rights Section */
.highlight-section {
    background: linear-gradient(135deg, #f0f8ff, #e0f2ff);
    border-radius: 15px;
    padding: 40px;
    border: 3px solid #1e90ff;
}

.rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.right-card {
    background: white;
    border: 2px solid #e0f2ff;
    border-radius: 10px;
    padding: 25px;
    transition: all 0.3s ease;
}

.right-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(30, 144, 255, 0.2);
    border-color: #1e90ff;
}

.right-card i {
    font-size: 2.5rem;
    color: #1e90ff;
    margin-bottom: 15px;
}

.right-card h3 {
    color: #222;
    margin: 15px 0;
    font-size: 1.1rem;
}

.right-card p {
    color: #666;
    margin: 0 0 15px 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.response-time {
    display: block;
    color: #1e90ff;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 10px;
}

.exercise-rights {
    background: white;
    border: 2px solid #1e90ff;
    border-radius: 10px;
    padding: 25px;
    margin-top: 30px;
    text-align: center;
}

.exercise-rights h3 {
    color: #1e90ff;
    margin-top: 0;
}

.exercise-rights a {
    color: #1e90ff;
    font-weight: 600;
    text-decoration: none;
}

.exercise-rights a:hover {
    text-decoration: underline;
}

/* Security Section */
.security-section {
    margin-top: 30px;
}

.security-list {
    list-style: none;
    margin-left: 0;
}

.security-list li {
    background: #f8fcff;
    border-left: 4px solid #1e90ff;
    padding: 15px 20px;
    margin-bottom: 12px;
    border-radius: 5px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.security-list i {
    color: #1e90ff;
    font-size: 1.3rem;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Retention Table */
.retention-table {
    margin-top: 30px;
    overflow-x: auto;
}

.retention-table table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.retention-table th,
.retention-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e0f2ff;
}

.retention-table th {
    background: #1e90ff;
    color: white;
    font-weight: 600;
}

.retention-table tr:hover {
    background: #f8fcff;
}

/* Cookie Types */
.cookie-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.cookie-type {
    background: #f8fcff;
    border: 2px solid #e0f2ff;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
}

.cookie-type i {
    font-size: 2rem;
    color: #1e90ff;
    margin-bottom: 15px;
}

.cookie-type h3 {
    color: #222;
    margin: 15px 0;
}

.cookie-type p {
    color: #666;
    margin: 0;
    font-size: 0.95rem;
}

/* Contact Section */
.contact-section {
    background: #f0f8ff;
    border-radius: 15px;
    padding: 40px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.contact-card {
    background: white;
    border: 2px solid #1e90ff;
    border-radius: 10px;
    padding: 30px;
}

.contact-card h3 {
    color: #1e90ff;
    margin-top: 0;
    margin-bottom: 20px;
}

.contact-card p {
    margin-bottom: 12px;
    color: #555;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.contact-card i {
    color: #1e90ff;
    margin-top: 3px;
    flex-shrink: 0;
}

.contact-card a {
    color: #1e90ff;
    text-decoration: none;
}

.contact-card a:hover {
    text-decoration: underline;
}

/* Document Control */
.document-control {
    background: #f8fcff;
    border: 2px solid #1e90ff;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
}

.control-info {
    margin: 20px 0;
}

.control-info p {
    margin-bottom: 10px;
    color: #555;
}

.disclaimer {
    font-style: italic;
    color: #666;
    margin-top: 20px;
    font-size: 0.95rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .legal-header {
        padding: 100px 20px 40px;
    }

    .legal-header h1 {
        font-size: 1.8rem;
    }

    .header-subtitle {
        font-size: 1rem;
    }

    .legal-nav {
        flex-direction: column;
        gap: 10px;
    }

    .legal-nav-link {
        width: 100%;
        text-align: center;
    }

    .legal-container {
        padding: 30px 20px;
    }

    .main-title {
        font-size: 1.6rem;
    }

    .legal-section h2 {
        font-size: 1.5rem;
    }

    .legal-basis-grid,
    .usage-grid,
    .rights-grid,
    .cookie-types,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .retention-table {
        font-size: 0.9rem;
    }

    .retention-table th,
    .retention-table td {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .legal-header {
        padding: 80px 15px 30px;
    }

    .legal-container {
        padding: 20px 15px;
    }

    .basis-card,
    .usage-card,
    .right-card {
        padding: 20px;
    }
}