/* --- Global Reset & Typography --- */
body {
    font-family: SFRounded, ui-rounded, "SF Pro Rounded Heavy", system-ui, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f7f7f7; /* Matching your body background */
    color: #2D3142; /* Matching your primary text color */
}

/* --- Header Section --- */
header {
    background-color: #fff; /* Keeping header clean */
    padding: 30px 40px;
    border-bottom: 1px solid #eee;
}

.container-header {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 1.8em; /* Scaled down for TOS header */
    color: #2D3142;
    margin: 0;
}

.contact-link {
    text-decoration: none;
    color: #A288E3; /* Your brand purple */
    font-size: 1.1em;
    font-weight: bold;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #452379; /* Your footer purple */
}

/* --- Main Content Layout --- */
.container {
    display: flex;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 40px;
    align-items: flex-start;
    gap: 40px;
}

/* --- Sidebar (Table of Contents) --- */
.sidebar {
    flex: 0 0 280px;
    position: sticky;
    top: 20px;
    background-color: #fff;
    padding: 25px;
    border-radius: 20px;
}

.sidebar h3 {
    color: #A288E3;
    font-size: 1.2em;
    margin-top: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar li {
    margin-bottom: 15px;
}

.sidebar a {
    text-decoration: none;
    color: #2D3142;
    font-size: 1em;
    transition: color 0.3s ease;
}

.sidebar a:hover {
    color: #A288E3;
}

/* --- Content Article --- */
article {
    flex: 1;
    background-color: #fff;
    padding: 40px;
    border-radius: 20px;
}

article section {
    margin-bottom: 50px;
}

article h2 {
    font-size: 2.2em;
    color: #2D3142;
    margin-top: 0;
    border-bottom: 3px solid #f7f7f7;
    padding-bottom: 10px;
}

article h3 {
    font-size: 1.4em;
    color: #452379; /* Dark purple for subheadings */
    margin-top: 30px;
}

article p {
    font-family: "SF Pro Rounded Medium", sans-serif;
    font-size: 1.1em;
    line-height: 1.7;
    color: #2D3142;
}

/* --- Important Note Blockquote --- */
.important-note {
    background-color: #f7f7f7;
    border-left: 5px solid #A288E3;
    margin: 30px 0;
    padding: 20px;
    border-radius: 0 15px 15px 0;
}

.important-note strong {
    color: #452379;
}

/* --- Footer --- */
footer {
    background-color: #452379; /* Your brand dark purple */
    padding: 60px 0;
    width: 100%;
    display: block; /* Ensure it's block level, not flex */
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
}

footer p {
    color: #fff;
    font-size: 0.95em;
    margin: 0 0 15px 0; /* Cleaned up margins */
    font-family: "SF Pro Rounded Medium", sans-serif;
}

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

.footer-links a {
    color: #A288E3; /* Your light purple brand color */
    text-decoration: none;
    font-size: 0.9em;
    font-family: "SF Pro Rounded Medium", sans-serif;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
}

.divider {
    color: #6a4ea1; /* Subtle purple for the divider */
    font-size: 0.8em;
}

/* Mobile adjustment */
@media (max-width: 600px) {
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
    .divider {
        display: none;
    }
}

/* --- Responsive Adjustments --- */
@media (max-width: 900px) {
    .container {
        flex-direction: column;
        padding: 0 20px;
    }
    
    .sidebar {
        position: relative;
        width: 100%;
        flex: none;
        top: 0;
    }
    
    article {
        padding: 25px;
    }
    
    article h2 {
        font-size: 1.8em;
    }
}