/* legal.css - Styles for TopoMapping Legal Pages */

:root {
    --bg-green: #106c43;
    --card-bg: #d5ffe2;
    --primary-dark: #1e5d44;
    --accent-yellow: #fdbf2d;
    --text-color: #103c29;
    --max-width: 900px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #1e5d44;
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
header {
    width: 80%;
    background-color: var(--card-bg);
    padding: 15px 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 800;
    margin: 40px auto;
    border-radius: 40px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-left: 50px;
}

.logo {
    width: 127px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: url('logo1.png');
}

.header-button {
    background-color: var(--bg-green);
    color: #fdbf2d;
    border: none;
    padding: 8px 18px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.header-button:hover {
    background-color: var(--primary-dark);
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
    margin-right: 50px;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--bg-green);
}

/* Mobile Menu Elements */
.mobile-menu-toggle,
.mobile-menu-overlay,
.mobile-menu,
.mobile-page-title {
    display: none;
}

/* Content Layout */
main {
    flex: 1;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto 60px auto;
    padding: 0 20px;
}

.legal-container {
    background-color: var(--card-bg);
    border-radius: 20px;
    padding: 50px 60px;
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.15);
    margin-top: 20px;
}

.legal-container h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--bg-green);
    margin-bottom: 10px;
    position: relative;
    padding-bottom: 15px;
}

.legal-container h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--bg-green), var(--accent-yellow));
    border-radius: 2px;
}

.last-updated {
    font-size: 0.9rem;
    color: #4a775f;
    margin-top: 15px;
    margin-bottom: 40px;
    font-style: italic;
}

.legal-section {
    margin-bottom: 35px;
}

.legal-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(16, 108, 67, 0.15);
    padding-bottom: 5px;
}

.legal-section p {
    font-size: 1.05rem;
    margin-bottom: 15px;
    color: var(--text-color);
    line-height: 1.7;
}

.legal-section ul, .legal-section ol {
    margin-bottom: 15px;
    padding-left: 25px;
}

.legal-section li {
    font-size: 1.05rem;
    margin-bottom: 8px;
    color: var(--text-color);
}

.legal-section strong {
    color: var(--bg-green);
}

.legal-highlight-box {
    background-color: rgba(16, 108, 67, 0.08);
    border-left: 4px solid var(--bg-green);
    padding: 20px;
    border-radius: 0 10px 10px 0;
    margin: 25px 0;
}

.legal-highlight-box p {
    margin-bottom: 0;
    font-weight: 500;
}

/* Footer */
.main-footer {
    background-color: #1b482e;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: white;
    width: 100%;
}

.footer-logo {
    margin-bottom: 40px;
    margin-left: 20px;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: 40px;
    flex-wrap: wrap;
}

.social-section,
.main-footer .contact-section {
    background-color: #C8F5C8;
    padding: 25px 35px;
    border-radius: 15px;
    text-align: center;
    color: #333;
    flex: 1;
    max-width: 350px;
    max-height: 125px;
}

.social-section h3,
.main-footer .contact-section h3 {
    margin-top: 0;
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 20px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 8px;
    font-size: 1.5em;
    color: white;
    text-decoration: none;
    transition: transform 0.2s;
}

.social-icon:hover {
    transform: translateY(-3px);
}

.social-icon.youtube { background-color: #FF0000; }
.social-icon.instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    color: white;
}
.social-icon.tiktok { background-color: #000000; }
.social-icon.facebook { background-color: #1877F2; }

.separator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 150px;
    position: relative;
    margin: 0 20px;
}

.separator .line {
    width: 2px;
    height: 100%;
    background-color: white;
}

.separator .circle {
    width: 15px;
    height: 15px;
    background-color: white;
    border-radius: 50%;
    position: absolute;
}

.separator .circle:first-child {
    top: 0;
}

.separator .circle:last-child {
    bottom: 0;
}

/* Footer Legal Bottom */
.footer-bottom {
    width: 100%;
    margin-top: 30px;
    padding-top: 20px;
}

.footer-bottom-line {
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.15);
    margin-bottom: 20px;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    flex-wrap: wrap;
    gap: 15px;
    padding: 0 20px;
}

.footer-legal-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-legal-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.footer-legal-links a:hover {
    color: var(--accent-yellow);
}

.legal-separator {
    color: rgba(255, 255, 255, 0.3);
}

/* Responsive */
@media (max-width: 900px) {
    header {
        width: 90%;
        margin: 20px auto;
    }
    .header-left {
        margin-left: 10px;
        gap: 20px;
    }
    nav ul {
        margin-right: 10px;
        gap: 15px;
    }
    .legal-container {
        padding: 30px 25px;
    }
    .legal-container h1 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
}
