/* Legal Pages Styles */
.legal-main {
    padding: 100px 0 60px;
    background: linear-gradient(to bottom right, #f8f9fa, #f1f2f6);
    color: #333;
    min-height: calc(100vh - 400px);
    /* font-family: "Inter", sans-serif; */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.legal-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 40px;
}

/* Sidebar styles */
.legal-sidebar {
    position: sticky;
    top: 120px;
    align-self: flex-start;
    width: 250px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 25px;
    margin-bottom: 30px;
}

.legal-toc h3 {
    color: #12123e;
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #03abc9;
}

.legal-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.legal-toc li {
    margin-bottom: 12px;
}

.legal-toc a {
    color: #333;
    text-decoration: none;
    font-size: 16px;
    display: block;
    padding: 5px 0;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 15px;
}

.legal-toc a:before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background-color: #03abc9;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.legal-toc a:hover {
    color: #03abc9;
    padding-left: 20px;
}

.legal-toc a:hover:before {
    opacity: 1;
}

/* Content styles */
.legal-content {
    flex: 1;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 40px;
    margin-top: 20px;
}

.legal-title {
    color: #12123e;
    font-size: 36px;
    margin-top: 0;
    margin-bottom: 40px;
    text-align: center;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.legal-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #03abc9;
}

.legal-section {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.legal-section:last-child {
    border-bottom: none;
}

.section-title {
    color: #12123e;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-left: 15px;
    border-left: 4px solid #03abc9;
}

.section-content {
    line-height: 1.6;
    color: #444;
    font-size: 16px;
}

.section-content p {
    margin-bottom: 16px;
}

.section-content a {
    color: #03abc9;
    text-decoration: none;
    transition: color 0.3s ease;
}

.section-content a:hover {
    color: #12123e;
    text-decoration: underline;
}

/* Important note box */
.important-note {
    background-color: rgba(3, 171, 201, 0.05);
    border-left: 4px solid #03abc9;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 0 4px 4px 0;
}

.important-note p {
    margin-top: 0;
    font-weight: 500;
}

.important-note ul {
    margin-bottom: 0;
}

/* Definition items */
.definition-item {
    margin-bottom: 20px;
}

.definition-item h4 {
    color: #12123e;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.definition-item p {
    margin-top: 0;
}

/* Data list styling */
.data-list {
    list-style: none;
    padding: 0;
}

.data-list li {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
    flex-direction: column;
}

.data-list li:last-child {
    border-bottom: none;
}

.data-type {
    font-weight: 600;
    color: #12123e;
    display: block;
    margin-bottom: 5px;
}

.data-description {
    color: #555;
}

/* Use cases and sharing cases */
.use-case, .sharing-case {
    margin-bottom: 20px;
}

.use-case h4, .sharing-case h4 {
    color: #12123e;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.use-case p, .sharing-case p {
    margin-top: 0;
}

/* Rights list */
.rights-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.right-item {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.right-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.right-item h4 {
    color: #12123e;
    font-size: 18px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 10px;
}

.right-item p {
    margin-bottom: 0;
}

/* Contact section */
.legal-contact {
    margin-top: 40px;
    padding: 20px;
    background: linear-gradient(to right, rgba(18, 18, 62, 0.05), rgba(3, 171, 201, 0.05));
    border-radius: 8px;
    text-align: center;
}

.legal-contact p {
    margin: 0;
    font-size: 17px;
}

/* Responsive styles */
@media (max-width: 992px) {
    .legal-container {
        flex-direction: column;
    }
    
    .legal-sidebar {
        position: relative;
        top: 0;
        width: auto; /* Remove fixed width */
        align-self: stretch; /* Make it stretch to container width */
        box-sizing: border-box; /* Include padding in width calculation */
        margin-bottom: 30px;
    }
    
    .rights-list {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .legal-main {
        padding: 100px 0 40px;
    }
    
    .legal-content {
        padding: 30px 20px;
    }
    
    .legal-title {
        font-size: 30px;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    .rights-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .legal-title {
        font-size: 26px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .section-content {
        font-size: 15px;
    }
}


/* Active state for TOC links */
.legal-toc a.active {
    color: #03abc9;
    padding-left: 20px;
    font-weight: 500;
}

.legal-toc a.active:before {
    opacity: 1;
}

/* Smooth scrolling for the whole page */
html {
    scroll-behavior: smooth;
}

/* Add a scroll offset to account for the fixed header */
:target {
    scroll-margin-top: 120px;
}


/* Additional styles for Terms of Use page */
.requirements-list {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}

.requirements-list li {
    margin-bottom: 8px;
}

.warning-note {
    background-color: rgba(255, 59, 48, 0.05);
    border-left: 4px solid #ff3b30;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 0 4px 4px 0;
}

.warning-note p {
    margin-top: 0;
    font-weight: 500;
}

/* Ensure smooth scrolling and proper offsets for this page too */
html {
    scroll-behavior: smooth;
}

:target {
    scroll-margin-top: 120px;
}

/* Active state for TOC links */
.legal-toc a.active {
    color: #03abc9;
    padding-left: 20px;
    font-weight: 500;
}

.legal-toc a.active:before {
    opacity: 1;
}


/* Additional styles for License Agreement page */
.license-list,
.obligations-list,
.rights-list,
.guarantees-list,
.responsibility-list {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}

.license-list li,
.obligations-list li,
.rights-list li,
.guarantees-list li,
.responsibility-list li {
    margin-bottom: 10px;
    line-height: 1.5;
}

.party-rights {
    margin-bottom: 25px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.party-rights:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.party-rights h4 {
    color: #12123e;
    font-size: 18px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 15px;
    padding-left: 12px;
    border-left: 3px solid #03abc9;
}

/* Numbered section formatting */
.section-content p[class^="5."],
.section-content p[class^="6."],
.section-content p[class^="7."],
.section-content p[class^="8."],
.section-content p[class^="9."],
.section-content p[class^="10."] {
    font-weight: 500;
    margin-bottom: 12px;
}

.definition-item {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
}

.definition-item:last-child {
    border-bottom: none;
}


/* Additional styles for Payment Procedure page */
.payment-info {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.card-icons {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
}

.card-icon {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

.card-icon:hover {
    transform: scale(1.1);
}

.refusal-list,
.policy-list {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}

.refusal-list li,
.policy-list li {
    margin-bottom: 10px;
    line-height: 1.5;
}

.info-note {
    background-color: rgba(3, 171, 201, 0.05);
    border-left: 4px solid #03abc9;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 0 4px 4px 0;
}

.info-note h4 {
    color: #12123e;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 600;
}

.info-note p {
    margin-bottom: 0;
}

.policy-details {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    background-color: #fafafa;
}

.procedure-steps {
    margin: 20px 0;
}

.steps-list {
    counter-reset: step-counter;
    list-style-type: none;
    padding-left: 0;
}

.steps-list li {
    position: relative;
    padding-left: 50px;
    margin-bottom: 25px;
    counter-increment: step-counter;
}

.steps-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 35px;
    height: 35px;
    background-color: #03abc9;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.steps-list h4 {
    color: #12123e;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 600;
}

.steps-list p {
    margin-bottom: 0;
}


/* Additional styles for Cookies page */
.cookies-types {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.cookies-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
}

.cookies-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    line-height: 1.5;
}

.cookies-list li:before {
    content: "🍪";
    position: absolute;
    left: 0;
    top: 0;
    font-size: 16px;
}

.cookie-type {
    font-weight: 600;
    color: #12123e;
}

/* Make section titles more readable for long titles */
@media (max-width: 768px) {
    #cookie-options .section-title {
        font-size: 20px;
    }
}

@media (max-width: 576px) {
    #cookie-options .section-title {
        font-size: 18px;
    }
}


/* Additional styles for Data Processing Agreement page */
.data-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin: 20px 0;
}

.data-category {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.data-category:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

.data-category h4 {
    color: #12123e;
    font-size: 18px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(3, 171, 201, 0.2);
}

.data-list-simple {
    list-style: none;
    padding: 0;
    margin: 0;
}

.data-list-simple li {
    padding-left: 20px;
    position: relative;
    margin-bottom: 8px;
    line-height: 1.5;
}

.data-list-simple li:before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: #03abc9;
    font-weight: bold;
}

.purpose-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.purpose-list li {
    background-color: rgba(3, 171, 201, 0.05);
    border-left: 3px solid #03abc9;
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 0 8px 8px 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.purpose-list li:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.purpose-title {
    display: block;
    font-weight: 600;
    color: #12123e;
    margin-bottom: 5px;
    font-size: 16px;
}

.purpose-description {
    display: block;
    color: #555;
}

/* Ensure active class styling for TOC links */
.legal-toc a.active {
    color: #03abc9;
    padding-left: 20px;
    font-weight: 500;
}

.legal-toc a.active:before {
    opacity: 1;
}