/* Light Mode */
.legal-content {
    max-width: 1400px;
    margin: 20px auto;
    padding: 0 1.5rem;
    font-family: inherit;
    line-height: 1.7;
    color: #333;
}

.legal-section {
    margin-bottom: 3rem;
}

.legal-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.legal-section h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: #1a1a1a;
}

.legal-section p,
.legal-section li {
    font-size: 1rem;
    color: #333;
}

.legal-section ul {
    padding-left: 1.2rem;
}

.legal-section a {
    text-decoration: underline;
    color: #0066cc;
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    .legal-content {
        color: #e0e0e0;
    }

    .legal-section h2,
    .legal-section h3 {
        color: #ffffff;
    }

    .legal-section p,
    .legal-section li {
        color: #e0e0e0;
    }

    .legal-section a {
        color: #4da6ff;
    }
}
.services-header {
    text-align: left;
    max-width: 1400px;
    margin: 100px auto 20px;
    display: flex;
    justify-content: space-between;
}

.services-header p {
    margin-left: 20px;
}

body {
    overflow-x: hidden;
}

.documents-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 160px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

.document-card {
    border-radius: 15px;
    padding: 20px;
    width: 300px;
    transition: transform 0.2s;
}

.fa-file {
    font-size: 30px;
    margin-bottom: 15px;
}

.services-header-title {
    font-size: 60px;
 margin-left: 20px;
 margin-top: 0;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
      background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    text-align: center;
    margin-bottom: 0;
}


.services-header-buttons {
display: flex;
gap: 10px;
margin-left: 20px;
margin-top: 10px;
}

.services-header-link {
    border: var(--color-text) 1px solid;
    border-radius: 50px;
    padding: 10px 15px;
    color: var(--color-text);
text-decoration: none;
}

.temporary-disclaimer a { 
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}

.temporary-disclaimer a:hover {
    text-decoration: underline;
}

.temporary-disclaimer a:visited {
    color: var(--color-secondary);
}

.services-header-link:hover {
    border: var(--color-text) 1px solid;
    background-color: var(--color-text);
    color: var(--color-gray) !important;
    text-decoration: none;
}

.services-header-link:visited {
    color: var(--color-grey);
}

.services-header-link.active {
    border: var(--color-text) 1px solid;
    background-color: var(--color-text);
    color: var(--color-gray);
    text-decoration: none;
}

.services-hedaer-commercial-links-container {
    display: flex;
    flex-direction: column;
    text-align: right;
    margin-right: 20px;
}

.services-hedaer-commercial-link {
    margin-bottom: 7px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .services-header-title {
        font-size: 36px; /* smaller title on phones */
        margin-top: 10px;
        margin-left: 20px;
    }

    .services-header-buttons {
        display: flex;
        gap: 10px;
        margin-left: 20px;
        margin-top: 10px;
        overflow-x: auto; /* horizontal scroll */
        -webkit-overflow-scrolling: touch; /* smooth scrolling on iOS */
        padding-bottom: 5px;
        font-size: 14px;
         -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
        flex-wrap: nowrap; /* prevent wrapping */
        width: calc(100vw - 20px);
    }

    .services-header-buttons::-webkit-scrollbar {
        display: none;
    }

    .services-header-link {
        flex: 0 0 auto; /* prevent shrinking */
        white-space: nowrap; /* keep text on one line */
    }

      .services-header {
        flex-direction: column-reverse;
        align-items: flex-start;
        margin-top: 5px;
    }

    /* Push Commercial Services below */
    .services-header > div:last-child {
        margin-top: 10px;
        margin-right: auto;
       
        text-align: left;
        align-items: flex-start;
    }

    .services-hedaer-commercial-links-container {
        display: flex;
        flex-direction: row;
        margin-top: 0px !important;
     justify-content: flex-start;
        gap: 20px;
        margin-left: 20px;
    }

    /* Re-enable horizontal scrolling for buttons */
    .services-header-buttons {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
    }

    h4 {
        margin: 0px;
        display: none;
        visibility: hidden;
    }

}

.temporary-disclaimer {
    font-size: 16px;
    color: var(--color-text);
    background-color: var(--color-background-secondary);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 10px 15px;
     margin: 0 20px;
}

.temporary-disclaimer-container {
  max-width: 1400px;
    margin: 20px auto;
}

main {
    height: 600px;
}