* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Sarabun', 'Kanit', 'Prompt', sans-serif;
    line-height: 1.8;
    color: #333;
    background-color: #f5f7fa;
    padding-top: 80px;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Header */
.header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
}

.logo img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s;
    transform-origin: center;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s;
    font-size: 0.95rem;
}

.nav a:hover,
.nav a.active {
    background-color: rgba(255,255,255,0.2);
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.3rem;
    opacity: 0.95;
}

/* Privacy Content */
.privacy-content {
    padding: 4rem 0;
    background: white;
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.intro-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 3rem;
    border-left: 5px solid #667eea;
}

.intro-section p {
    margin-bottom: 1rem;
    color: #555;
}

.intro-section .important-note {
    background: #fff3cd;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
    color: #856404;
    margin-top: 1.5rem;
    font-weight: 500;
}

.section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #e0e0e0;
}

.section:last-child {
    border-bottom: none;
}

.section h2 {
    font-size: 2rem;
    color: #1e3c72;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #667eea;
}

.section p {
    margin-bottom: 1rem;
    color: #555;
    text-align: justify;
    word-break: break-word;
    overflow-wrap: break-word;
}

.section a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    word-break: break-word;
    overflow-wrap: break-word;
}

.section a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.subsection {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f9f9f9;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.subsection h3 {
    font-size: 1.4rem;
    color: #1e3c72;
    margin-bottom: 1rem;
}

.subsection p {
    margin-bottom: 1rem;
}

.subsection ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.subsection ul li {
    margin-bottom: 0.5rem;
    color: #555;
}

.note-text {
    background: #e3f2fd;
    padding: 1rem;
    border-radius: 5px;
    border-left: 3px solid #2196f3;
    margin-top: 1rem;
}

.purpose-list,
.rights-list,
.responsibilities-list {
    list-style: none;
    margin-left: 0;
}

.purpose-list li,
.rights-list li,
.responsibilities-list li {
    padding: 1rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    border-radius: 8px;
    border-left: 4px solid #667eea;
    color: #555;
}

.purpose-list li strong,
.rights-list li strong,
.responsibilities-list li strong {
    color: #1e3c72;
    display: block;
    margin-bottom: 0.5rem;
}

.delete-steps {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.delete-steps li {
    margin-bottom: 1rem;
    color: #555;
    padding-left: 0.5rem;
}

.note-title {
    font-weight: bold;
    color: #1e3c72;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.contact-box {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    padding: 2rem;
    border-radius: 10px;
    margin: 1.5rem 0;
    border-left: 4px solid #4caf50;
}

.contact-box p {
    margin-bottom: 1rem;
    color: #2e7d32;
}

.contact-box a {
    color: #1e3c72;
    font-weight: bold;
}

.thank-you {
    background: #fff3cd;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
    color: #856404;
    font-weight: 500;
    margin-top: 1.5rem;
    text-align: center;
}

/* Footer */
.footer {
    background: #1e3c72;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #ccc;
}

/* Responsive */
@media (max-width: 768px) {
    html {
        overflow-x: hidden;
    }

    body {
        padding-top: 80px;
        overflow-x: hidden;
        max-width: 100vw;
    }

    .container {
        padding: 0 15px;
        max-width: 100%;
        width: 100%;
    }

    .header {
        width: 100%;
        max-width: 100vw;
    }

    .header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0 15px;
    }

    .menu-toggle {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100vw;
        background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
        flex-direction: column;
        padding: 2rem 0;
        gap: 0;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
        z-index: 999;
    }

    .nav.active {
        transform: translateX(0);
    }

    .nav a {
        display: block;
        padding: 1rem 2rem;
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        font-size: 1rem;
        word-break: break-word;
    }

    .nav a:hover,
    .nav a.active {
        background-color: rgba(255,255,255,0.2);
    }

    .page-header {
        width: 100%;
        max-width: 100vw;
        padding: 3rem 0;
    }

    .page-header h1 {
        font-size: 2rem;
        word-break: break-word;
    }

    .page-header p {
        font-size: 1.1rem;
        word-break: break-word;
    }

    .privacy-content {
        width: 100%;
        max-width: 100vw;
        padding: 3rem 0;
    }

    .section {
        width: 100%;
        overflow-wrap: break-word;
    }

    .section h2 {
        font-size: 1.6rem;
        word-break: break-word;
    }

    .subsection {
        width: 100%;
        overflow-wrap: break-word;
    }

    .subsection h3 {
        font-size: 1.2rem;
        word-break: break-word;
    }

    .content-wrapper {
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
    }

    .intro-section,
    .subsection,
    .contact-box {
        padding: 1.5rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .footer {
        width: 100%;
        max-width: 100vw;
    }
}

