/* ============================================
   ClockIn Legal Pages - Green Theme
   Colors: #87cb30 (primary), #64bb46ff (secondary)
   ============================================ */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #1E293B;
    line-height: 1.7;
    overflow-x: hidden;
    background: #F8FAFC;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    color: #0F172A;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    margin-top: 0;
}

h2 {
    font-size: 2rem;
    color: #64bb46ff;
    border-bottom: 3px solid #87cb30;
    padding-bottom: 0.5rem;
    margin-top: 3rem;
}

h3 {
    font-size: 1.5rem;
    color: #334155;
}

p {
    margin-bottom: 1rem;
}

a {
    color: #64bb46ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #87cb30;
    text-decoration: underline;
}

ul,
ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.5rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

th,
td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #E2E8F0;
}

th {
    background: #87cb30;
    color: white;
    font-weight: 600;
}

tr:hover {
    background: #F1F5F9;
}

strong {
    color: #0F172A;
    font-weight: 600;
}

code {
    background: #E8F5E9;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #64bb46ff;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

@media (min-width: 641px) {
    .container {
        padding: 0 24px;
    }
}

@media (min-width: 1025px) {
    .container {
        padding: 0 32px;
    }
}

/* ============================================
   Header
   ============================================ */

.sticky-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo-section {
    display: flex;
    align-items: center;
    max-width: 200px;
}

.logo-section img {
    width: 100%;
    height: auto;
}

.language-selector {
    border: none;
    background: transparent;
    color: #FFFFFF;
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    margin-top: 10px;
    font-family: Poppins, sans-serif;
    outline: none;
    background-color: transparent;
}

.language-selector option {
    background-color: #ffffff;
    color: #000000 !important;
}

.sticky .language-selector {
    color: #2e2e2e;
}

.lang-btn {
    padding: 8px 16px;
    border: 2px solid #E2E8F0;
    background: white;
    color: #64748B;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    border-color: #87cb30;
    color: #64bb46ff;
    transform: translateY(-2px);
}

.lang-btn.active {
    background: linear-gradient(135deg, #87cb30 0%, #64bb46ff 100%);
    color: white;
    border-color: #87cb30;
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    padding: 4rem 0 3rem;
    background: linear-gradient(135deg, #87cb30 0%, #64bb46ff 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    top: -250px;
    right: -100px;
}

.hero::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    bottom: -150px;
    left: -50px;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
    position: relative;
    z-index: 1;
}

.highlight {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.hero-description {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.95) !important;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 1;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.meta-icon {
    font-size: 1.2rem;
}

/* ============================================
   Content Section
   ============================================ */

.content-section {
    padding: 4rem 0;
    background: #F8FAFC;
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.last-updated {
    background: #F0FDF4;
    padding: 1rem 1.5rem;
    border-left: 4px solid #87cb30;
    border-radius: 8px;
    margin-bottom: 2rem;
    font-weight: 500;
    color: #166534;
}

.info-box {
    background: #F8FAFC;
    border-left: 4px solid #64bb46ff;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 8px;
}

.info-box-title {
    font-weight: 600;
    color: #0F172A;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.highlight-box {
    background: linear-gradient(135deg, #F0FDF4 0%, #DCFCE7 100%);
    border: 2px solid #87cb30;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 12px;
}

.highlight-box strong {
    color: #64bb46ff;
}

/* ============================================
   Contact Section
   ============================================ */

.contact-box {
    background: linear-gradient(135deg, #87cb30 0%, #64bb46ff 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin: 3rem 0;
}

.contact-box h2 {
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

.contact-box a {
    color: white;
    font-weight: 600;
    text-decoration: underline;
}

.contact-box a:hover {
    opacity: 0.8;
}

.contact-item {
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ============================================
   CTA Section
   ============================================ */

.cta {
    padding: 4rem 0;
    background: linear-gradient(135deg, #87cb30 0%, #64bb46ff 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    top: -200px;
    left: -100px;
}

.cta-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: white;
    position: relative;
    z-index: 1;
}

.cta-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: white;
    color: #64bb46ff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    border: 2px solid white;
}

.btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

/* ============================================
   Footer
   ============================================ */

.footer {
    background: #0F172A;
    color: #94A3B8;
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-link {
    color: #94A3B8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #87cb30;
}

/* ============================================
   Back to Top Button
   ============================================ */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #87cb30 0%, #64bb46ff 100%);
    color: white;
    border-radius: 10%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(100, 187, 70, 0.4);
    transition: all 0.3s ease;
    opacity: 0;
    pointer-events: none;
    z-index: 100;
}

.back-to-top.show {
    opacity: 1;
    pointer-events: auto;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(100, 187, 70, 0.5);
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .content-wrapper {
        padding: 1.5rem;
    }

    .hero-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    table {
        font-size: 0.9rem;
    }

    th,
    td {
        padding: 0.5rem;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .lang-btn {
        padding: 6px 12px;
        font-size: 0.9rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
}