:root {
    --primary-color: #1a237e;
    --secondary-color: #0d47a1;
    --text-color: #333;
    --bg-color: #f5f6fa;
    --card-bg: #ffffff;
    --header-height: 70px;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.terms-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0;
    min-height: 300px;
    display: flex;
    flex-direction: column;
}

.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(0, 0, 0, 0.1);
    height: var(--header-height);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
}

.nav-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.nav-links a:hover {
    opacity: 1;
}

.header-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.header-content h1 {
    font-size: 2.5rem;
    margin: 0;
    margin-bottom: 1rem;
}

.header-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
}

main {
    flex: 1;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#features, #signup {
    margin-bottom: 20px;
}

main {
    max-width: 1000px;
    margin: -50px auto 2rem;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

#terms, #privacy {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

#terms h2, #privacy h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: left;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

#terms h3, #privacy h3 {
    color: var(--secondary-color);
    font-size: 1.4rem;
    margin: 2rem 0 1rem;
    text-align: left;
}

#terms p, #privacy p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

#terms ul, #privacy ul {
    background-color: var(--bg-color);
    border-radius: 8px;
    padding: 1.5rem 2rem;
    margin: 1rem 0;
}

#terms li, #privacy li {
    margin: 0.8rem 0;
    padding: 0;
    background: none;
    box-shadow: none;
    font-size: 1.1rem;
    color: var(--text-color);
    position: relative;
    padding-left: 1.5rem;
}

#terms li:before, #privacy li:before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.app-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.highlight-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.highlight-card:hover {
    transform: translateY(-5px);
}

.highlight-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.highlight-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.highlight-card p {
    color: var(--text-color);
    opacity: 0.9;
    margin: 0;
}

.download {
    text-align: center;
    padding: 3rem 2rem;
    margin: 2rem 0;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.download h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.download p {
    color: var(--text-color);
    opacity: 0.9;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.download img {
    max-width: 200px;
    height: auto;
    transition: transform 0.3s ease;
}

.download img:hover {
    transform: scale(1.05);
}

.download {
    margin-bottom: 20px;
    text-align: center;
}

.download-button {
    background-color: #3b7ded;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-size: 16px;
    cursor: pointer;
}

.download img {
    width: 200px;
    height: auto;
}

.download-button:hover {
    background-color: #2a5bbf;
}

h2, h3 {
    color: #333;
    text-align: center;
}

ul {
    list-style-type: none;
    padding: 0;
}

li {
    background-color: #fff;
    margin: 10px 0;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

p {
    text-align: justify;
}

form {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

label {
    display: block;
    margin-bottom: 10px;
}

input[type="email"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

button {
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #555;
}

footer {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: auto;
}

footer p {
    margin: 0;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-bar {
        flex-direction: column;
        height: auto;
        padding: 1rem;
        gap: 1rem;
    }

    .nav-links {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        width: 100%;
    }

    .header-content h1 {
        font-size: 2rem;
    }

    main {
        padding: 0 1rem;
        margin-top: -30px;
    }

    #terms, #privacy {
        padding: 1.5rem;
    }
}
